This commit is contained in:
恍兮惚兮 2024-06-01 21:27:13 +08:00
parent b6290fed56
commit 345310c455
3 changed files with 12 additions and 2 deletions

View File

@ -1554,6 +1554,7 @@ class dialog_savedgame_new(saveposwindow):
dic=globalconfig,
key="savegamedialoggeo",
)
globalconfig["gamemanageruseversion"] = 0
global _global_dialog_savedgame_new
_global_dialog_savedgame_new = self
self.setWindowTitle(_TR("游戏管理"))
@ -1818,6 +1819,7 @@ class dialog_savedgame_lagacy(QDialog):
# return
# dialog_savedgame._sigleton=True
super().__init__(parent, Qt.WindowCloseButtonHint)
globalconfig["gamemanageruseversion"] = 1
self.setWindowTitle(_TR("已保存游戏"))
formLayout = QVBoxLayout(self) #
model = QStandardItemModel()

View File

@ -3,7 +3,7 @@ from qtsymbols import *
from gui.pretransfile import sqlite2json2
from gui.settingpage_ocr import getocrgrid
from myutils.config import globalconfig, _TR, _TRL, savehook_new_data, savehook_new_list
from gui.dialog_savedgame import dialog_savedgame_new
from gui.dialog_savedgame import dialog_savedgame_new, dialog_savedgame_lagacy
import gobject
from gui.inputdialog import regexedit
from gui.usefulwidget import (
@ -22,6 +22,13 @@ from gui.codeacceptdialog import codeacceptdialog
from myutils.utils import makehtml, getfilemd5
def dynamicusemanager(self):
if globalconfig["gamemanageruseversion"] == 0:
dialog_savedgame_new(self)
elif globalconfig["gamemanageruseversion"] == 1:
dialog_savedgame_lagacy(self)
def gethookgrid(self):
grids = [
@ -66,9 +73,9 @@ def gethookgrid(self):
D_getcolorbutton(
globalconfig,
"",
functools.partial(dynamicusemanager, self),
icon="fa.gamepad",
constcolor="#FF69B4",
callback=lambda: dialog_savedgame_new(self),
),
1,
),

View File

@ -243,6 +243,7 @@
"onfilenoexistscolor": "#acacac",
"transparent": 25
},
"gamemanageruseversion": 0,
"profiles_index": 0,
"ocrautobindwindow": true,
"toolbutton": {