Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Jun 26, 2017
1 parent 8b2c84d commit 7b401e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions advanced_previewer/previewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,17 +615,16 @@ def onTogglePreview(self):

def _refreshCurrentCard(self, note):
self.model.refreshNote(note)
# multiple cards selected?:
if not self._previewWindow:
return
# multiple cards selected?:
if self._previewWindow.multi:
self._previewWindow.updatePreview(note)
else:
self._previewWindow.renderPreview(False)



# existing methods:
Browser.onTogglePreview = wrap(Browser.onTogglePreview, onTogglePreview)
Browser._openPreview = _openPreview
Browser._onClosePreview = _onClosePreview
Expand Down

0 comments on commit 7b401e4

Please sign in to comment.