This commit is contained in:
恍兮惚兮 2024-04-28 01:48:41 +08:00
parent c7d0397589
commit 3b01a281ab

View File

@ -227,7 +227,7 @@ class IMGWidget(QLabel):
def opendir(k): def opendir(k):
try: try:
os.startfile(os.path.dirname(k)) os.system(f"explorer {os.path.dirname(k)}")
except: except:
pass pass
@ -337,6 +337,7 @@ class browserdialog(QDialog):
savehook_new_data[self.exepath]["relationlinks"].pop( savehook_new_data[self.exepath]["relationlinks"].pop(
tab_index - self.hasvndb tab_index - self.hasvndb
) )
def lastclicked(self): def lastclicked(self):
def callback(texts): def callback(texts):
if len(texts[0].strip()) and len(texts[1].strip()): if len(texts[0].strip()) and len(texts[1].strip()):
@ -400,7 +401,7 @@ class dialog_setting_game(QDialog):
savehook_new_data[res] = savehook_new_data[self.exepath] savehook_new_data[res] = savehook_new_data[self.exepath]
savehook_new_data.pop(self.exepath) savehook_new_data.pop(self.exepath)
_icon = getExeIcon(res, cache=True) _icon = getExeIcon(res, cache=True)
self.setWindowIcon(_icon) self.setWindowIcon(_icon)
self.editpath.setText(res) self.editpath.setText(res)
self.exepath = res self.exepath = res