fix(NFLmusic): 修复删除歌曲时的 IndexError
- 修复了删除歌曲时可能出现的 IndexError异常 - 更新了列表框中歌曲的删除逻辑 -将软件版本号从 4.2.5 升级到4.2.6
This commit is contained in:
@ -430,7 +430,7 @@ def delete():
|
|||||||
os.remove(abs_path_lrc)
|
os.remove(abs_path_lrc)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
music_dir_without_endswith.remove(filtered_list[listbox1.curselection()[0]])
|
music_dir_without_endswith.remove(listbox1.get(0, END)[listbox1.curselection()[0]])
|
||||||
music_dir.remove(music_dir[listbox1.curselection()[0]])
|
music_dir.remove(music_dir[listbox1.curselection()[0]])
|
||||||
listbox1.delete(listbox1.curselection()[0])
|
listbox1.delete(listbox1.curselection()[0])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
@ -1331,7 +1331,7 @@ def search_local_song():
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
version = "4.2.5"
|
version = "4.2.6"
|
||||||
poem = ""
|
poem = ""
|
||||||
appdata = os.getenv("APPDATA")
|
appdata = os.getenv("APPDATA")
|
||||||
make_resource()
|
make_resource()
|
||||||
|
Reference in New Issue
Block a user