mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 15:43: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()
|
self.flow.verticalScrollBar().maximum()
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
self.flow.widget(idx2).click()
|
self.flow.widget(idx2).click()
|
||||||
except:
|
except:
|
||||||
@ -787,7 +790,6 @@ class dialog_savedgame_new(QWidget):
|
|||||||
game2 = self.idxsave[idx2]
|
game2 = self.idxsave[idx2]
|
||||||
self.idxsave.insert(idx2, self.idxsave.pop(idx1))
|
self.idxsave.insert(idx2, self.idxsave.pop(idx1))
|
||||||
self.flow.switchidx(idx1, idx2)
|
self.flow.switchidx(idx1, idx2)
|
||||||
# self.flow.ensureWidgetVisible(self.flow.widget(idx2))
|
|
||||||
idx1 = self.reflist.index(game)
|
idx1 = self.reflist.index(game)
|
||||||
idx2 = self.reflist.index(game2)
|
idx2 = self.reflist.index(game2)
|
||||||
self.reflist.insert(idx2, self.reflist.pop(idx1))
|
self.reflist.insert(idx2, self.reflist.pop(idx1))
|
||||||
|
@ -778,7 +778,10 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
self.stack.verticalScrollBar().maximum()
|
self.stack.verticalScrollBar().maximum()
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
self.stack.ensureWidgetVisible(group0.w(idx2))
|
self.stack.ensureWidgetVisible(group0.w(idx2))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
group0.w(idx2).click()
|
group0.w(idx2).click()
|
||||||
except:
|
except:
|
||||||
@ -1012,9 +1015,12 @@ class dialog_savedgame_v3(QWidget):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.stack.w(calculatetagidx(self.reftagid)).switchidx(idx1, idx2)
|
self.stack.w(calculatetagidx(self.reftagid)).switchidx(idx1, idx2)
|
||||||
|
try:
|
||||||
self.stack.ensureWidgetVisible(
|
self.stack.ensureWidgetVisible(
|
||||||
self.stack.w(calculatetagidx(self.reftagid)).w(idx2)
|
self.stack.w(calculatetagidx(self.reftagid)).w(idx2)
|
||||||
)
|
)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
idx1 = getreflist(self.reftagid).index(uid)
|
idx1 = getreflist(self.reftagid).index(uid)
|
||||||
idx2 = getreflist(self.reftagid).index(uid2)
|
idx2 = getreflist(self.reftagid).index(uid2)
|
||||||
getreflist(self.reftagid).insert(idx2, getreflist(self.reftagid).pop(idx1))
|
getreflist(self.reftagid).insert(idx2, getreflist(self.reftagid).pop(idx1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user