From 7a6a39e17349688addceb9b9527b8ba570cff42a 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: Tue, 4 Jun 2024 22:14:15 +0800 Subject: [PATCH] ro --- LunaTranslator/LunaTranslator/gui/dialog_savedgame.py | 5 ----- LunaTranslator/LunaTranslator/gui/inputdialog.py | 1 - LunaTranslator/LunaTranslator/gui/usefulwidget.py | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py index 640b1b57..6ca4b790 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py @@ -714,7 +714,6 @@ class dialog_setting_game_internal(QWidget): False, False, None, - True, selectimg, True, ), @@ -731,7 +730,6 @@ class dialog_setting_game_internal(QWidget): True, False, None, - True, selectimg2, True, ), @@ -754,7 +752,6 @@ class dialog_setting_game_internal(QWidget): False, True, None, - True, lambda _: savehook_new_data[exepath].__setitem__( "autosavesavedata", os.path.normpath(_) ), @@ -773,7 +770,6 @@ class dialog_setting_game_internal(QWidget): False, True, None, - True, lambda _: savehook_new_data[exepath].__setitem__( "backupsavedatato", os.path.normpath(_) ), @@ -1067,7 +1063,6 @@ class dialog_setting_game_internal(QWidget): False, False, filt, - True, functools.partial(selectimg, exepath, key), True, ), diff --git a/LunaTranslator/LunaTranslator/gui/inputdialog.py b/LunaTranslator/LunaTranslator/gui/inputdialog.py index 98199e41..254bc6db 100644 --- a/LunaTranslator/LunaTranslator/gui/inputdialog.py +++ b/LunaTranslator/LunaTranslator/gui/inputdialog.py @@ -269,7 +269,6 @@ class autoinitdialog(QDialog): line.get("multi", False), line["dir"], line.get("filter", None), - False, callback=functools.partial(__temp.__setitem__, "k"), ) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 035bb11c..3a7e8c63 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -1111,7 +1111,6 @@ def getsimplepatheditor( multi, isdir, filter1="*.*", - ro=True, callback=None, useiconbutton=False, ): @@ -1120,7 +1119,7 @@ def getsimplepatheditor( director=(text[0] if len(text) else '') if multi else text e = QLineEdit('|'.join(text) if multi else text) - e.setReadOnly(ro) + e.setReadOnly(True) if useiconbutton: bu = getcolorbutton("", "", None, icon="fa.gear", constcolor="#FF69B4") else: