From 90811d67fbf775b5ba2a8f1d9712dc9c3c491fa0 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 9 Sep 2020 22:49:18 +0200 Subject: [PATCH] A couple of improvements after PR #445 --- nw/gui/docviewer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nw/gui/docviewer.py b/nw/gui/docviewer.py index ebd90199..c54411b4 100644 --- a/nw/gui/docviewer.py +++ b/nw/gui/docviewer.py @@ -202,7 +202,7 @@ class GuiDocViewer(QTextBrowser): def reloadText(self): """Reload the text in the current document. """ - self.loadText(self.theHandle) + self.loadText(self.theHandle, updateHistory=False) return def loadFromTag(self, theTag): @@ -1040,14 +1040,14 @@ class GuiDocViewFooter(QWidget): def _doToggleComments(self, theState): """Toggle the view comment button and reload the document. """ - self.mainConf.setViewComments(not self.mainConf.viewComments) + self.mainConf.setViewComments(theState) self.docViewer.reloadText() return def _doToggleSynopsis(self, theState): """Toggle the view synopsis button and reload the document. """ - self.mainConf.setViewSynopsis(not self.mainConf.viewSynopsis) + self.mainConf.setViewSynopsis(theState) self.docViewer.reloadText() return