From 3b01a281ab8770f99289aa034a9f995df73c2fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 28 Apr 2024 01:48:41 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/dialog_savedgame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py index 65d5b4fb..de4443c2 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py @@ -227,7 +227,7 @@ class IMGWidget(QLabel): def opendir(k): try: - os.startfile(os.path.dirname(k)) + os.system(f"explorer {os.path.dirname(k)}") except: pass @@ -337,6 +337,7 @@ class browserdialog(QDialog): savehook_new_data[self.exepath]["relationlinks"].pop( tab_index - self.hasvndb ) + def lastclicked(self): def callback(texts): 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.pop(self.exepath) _icon = getExeIcon(res, cache=True) - + self.setWindowIcon(_icon) self.editpath.setText(res) self.exepath = res