Skip to content

Commit

Permalink
Don't render preview if it's disabled (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhn authored Oct 8, 2020
1 parent 39eb38f commit fa2abb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReText/tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def updatePreviewBox(self):

def triggerPreviewUpdate(self):
self.previewOutdated = True
if self.previewState == PreviewDisabled:
return

if not self.conversionPending:
self.conversionPending = True
Expand Down

0 comments on commit fa2abb5

Please sign in to comment.