Tweak previewer navigation button display
This commit is contained in:
parent
17d68cc957
commit
0bcf60fea6
@ -1087,7 +1087,8 @@ where id in %s""" % ids2str(sf))
|
||||
def _updatePreviewButtons(self):
|
||||
if not self._previewWindow:
|
||||
return
|
||||
canBack = self.currentRow() > 0 or self._previewState == "question"
|
||||
current = self.currentRow()
|
||||
canBack = (current > 0 or (current == 0 and self._previewState == "answer" ))
|
||||
self._previewPrev.setEnabled(not not (self.singleCard and canBack))
|
||||
canForward = self.currentRow() < self.model.rowCount(None) - 1 or \
|
||||
self._previewState == "question"
|
||||
|
Loading…
Reference in New Issue
Block a user