mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 07:33:53 +08:00
.
This commit is contained in:
parent
2d12df0388
commit
cc13b92d27
@ -773,7 +773,10 @@ class dialog_savedgame_new(QWidget):
|
||||
self.flow.verticalScrollBar().maximum()
|
||||
)
|
||||
else:
|
||||
self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
||||
try:
|
||||
self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
self.flow.widget(idx2).click()
|
||||
except:
|
||||
@ -787,7 +790,6 @@ class dialog_savedgame_new(QWidget):
|
||||
game2 = self.idxsave[idx2]
|
||||
self.idxsave.insert(idx2, self.idxsave.pop(idx1))
|
||||
self.flow.switchidx(idx1, idx2)
|
||||
# self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
||||
idx1 = self.reflist.index(game)
|
||||
idx2 = self.reflist.index(game2)
|
||||
self.reflist.insert(idx2, self.reflist.pop(idx1))
|
||||
|
@ -778,7 +778,10 @@ class dialog_savedgame_v3(QWidget):
|
||||
self.stack.verticalScrollBar().maximum()
|
||||
)
|
||||
else:
|
||||
self.stack.ensureWidgetVisible(group0.w(idx2))
|
||||
try:
|
||||
self.stack.ensureWidgetVisible(group0.w(idx2))
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
group0.w(idx2).click()
|
||||
except:
|
||||
@ -1012,9 +1015,12 @@ class dialog_savedgame_v3(QWidget):
|
||||
)
|
||||
|
||||
self.stack.w(calculatetagidx(self.reftagid)).switchidx(idx1, idx2)
|
||||
self.stack.ensureWidgetVisible(
|
||||
self.stack.w(calculatetagidx(self.reftagid)).w(idx2)
|
||||
)
|
||||
try:
|
||||
self.stack.ensureWidgetVisible(
|
||||
self.stack.w(calculatetagidx(self.reftagid)).w(idx2)
|
||||
)
|
||||
except:
|
||||
pass
|
||||
idx1 = getreflist(self.reftagid).index(uid)
|
||||
idx2 = getreflist(self.reftagid).index(uid2)
|
||||
getreflist(self.reftagid).insert(idx2, getreflist(self.reftagid).pop(idx1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user