Latest release notes check should use hex version number instead of string version number

This commit is contained in:
Veronica K. B. Olsen
2021-01-17 20:52:34 +01:00
parent e7e2176e64
commit 2030793a02
5 changed files with 71 additions and 36 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ from nw.gui import (
)
from nw.core import NWProject, NWDoc, NWIndex
from nw.constants import nwItemType, nwItemClass, nwAlert, nwLists
from nw.common import getGuiItem
from nw.common import getGuiItem, hexToInt
logger = logging.getLogger(__name__)
@@ -239,10 +239,10 @@ class GuiMain(QMainWindow):
self.showProjectLoadDialog()
# Show the latest release notes, if they haven't been shown before
if self.mainConf.lastNotes != nw.__version__:
if hexToInt(self.mainConf.lastNotes) < hexToInt(nw.__hexversion__):
if self.mainConf.showGUI:
self.showAboutNWDialog(showNotes=True)
self.mainConf.lastNotes = nw.__version__
self.mainConf.lastNotes = nw.__hexversion__
logger.debug("novelWriter is ready ...")
self.setStatus("novelWriter is ready ...")