mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
f00fb48d8a
commit
eab0a5d08f
@ -2799,7 +2799,7 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
self.simplebutton(
|
self.simplebutton(
|
||||||
"其他设置", False, lambda: dialog_syssetting(self, type_=2), False
|
"其他设置", False, lambda: dialog_syssetting(self, type_=2), False
|
||||||
)
|
)
|
||||||
|
isfirst = True
|
||||||
for i, tag in enumerate(savegametaged):
|
for i, tag in enumerate(savegametaged):
|
||||||
# None
|
# None
|
||||||
# {
|
# {
|
||||||
@ -2810,7 +2810,7 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
title = "GLOBAL"
|
title = "GLOBAL"
|
||||||
lst = savehook_new_list
|
lst = savehook_new_list
|
||||||
tagid = None
|
tagid = None
|
||||||
opened = True
|
opened = globalconfig["global_list_opened"]
|
||||||
else:
|
else:
|
||||||
lst = tag["games"]
|
lst = tag["games"]
|
||||||
title = tag["title"]
|
title = tag["title"]
|
||||||
@ -2825,11 +2825,14 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
self.reallist[tagid].append(k)
|
self.reallist[tagid].append(k)
|
||||||
|
if opened and isfirst and (rowreal == 0):
|
||||||
|
vis = True
|
||||||
|
isfirst = False
|
||||||
|
else:
|
||||||
|
vis = False
|
||||||
group0.insertw(
|
group0.insertw(
|
||||||
rowreal,
|
rowreal,
|
||||||
functools.partial(
|
functools.partial(self.delayitemcreater, k, vis, tagid),
|
||||||
self.delayitemcreater, k, i == 0 and rowreal == 0, tagid
|
|
||||||
),
|
|
||||||
1 + globalconfig["dialog_savegame_layout"]["listitemheight"],
|
1 + globalconfig["dialog_savegame_layout"]["listitemheight"],
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2933,7 +2936,8 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
def _revertoepn(self, tagid):
|
def _revertoepn(self, tagid):
|
||||||
item = savegametaged[calculatetagidx(tagid)]
|
item = savegametaged[calculatetagidx(tagid)]
|
||||||
if item is None:
|
if item is None:
|
||||||
return
|
globalconfig["global_list_opened"] = not globalconfig["global_list_opened"]
|
||||||
|
else:
|
||||||
savegametaged[calculatetagidx(tagid)]["opened"] = not savegametaged[
|
savegametaged[calculatetagidx(tagid)]["opened"] = not savegametaged[
|
||||||
calculatetagidx(tagid)
|
calculatetagidx(tagid)
|
||||||
]["opened"]
|
]["opened"]
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
"WindowBackdrop": 0,
|
"WindowBackdrop": 0,
|
||||||
"WindowEffect": 0,
|
"WindowEffect": 0,
|
||||||
"read_raw": true,
|
"read_raw": true,
|
||||||
|
"global_list_opened": true,
|
||||||
"read_trans": false,
|
"read_trans": false,
|
||||||
"read_translator": 0,
|
"read_translator": 0,
|
||||||
"disappear_delay": 5,
|
"disappear_delay": 5,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user