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: