From a00e1a1be5f89c66479114b85c79014024232953 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: Fri, 28 Jun 2024 15:19:16 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/dialog_savedgame.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py index 3dcf9405..b533b94e 100644 --- a/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py +++ b/LunaTranslator/LunaTranslator/gui/dialog_savedgame.py @@ -2094,16 +2094,12 @@ class dialog_savedgame_new(QWidget): global _global_dialog_savedgame_new _global_dialog_savedgame_new = self formLayout = QVBoxLayout() - self.reflist = getreflist(globalconfig["currvislistuid"]) - if self.reflist is None: - # 已被删除 - globalconfig["currvislistuid"] = None - self.reflist = savehook_new_list - self.reftagid = globalconfig["currvislistuid"] layout = QHBoxLayout() layout.setContentsMargins(0, 0, 0, 0) self.__layout = layout self.loadcombo(True) + self.reflist = getreflist(globalconfig["currvislistuid"]) + self.reftagid = globalconfig["currvislistuid"] def refreshcombo(): _ = self.tagswidget.lineEdit.currentText()