diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c3bc08f..300f82fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # novelWriter Changelog +## Version 1.6.5 [2022-10-13] + +### Release Notes + +This is a bugfix release that fixes a a few minor issues. The idle time for new projects would be +artificially inflated as the clock was not reset when the project was first created. This only +affects the first entry in the writing statistics. A scaling issue for the Preferences dialog has +also been fixed. It only affected screens with UI scaling enabled. Lastly, typing `Shift+Enter` in +the text editor now creates a regular line break instead of a special line separator. The line +separator serves no purpose in plain text, and was producing inconsistencies in how text is +processed and displayed. + +### Detailed Changelog + +**Bugfixes** + +* Fixed a bug where the idle time was not properly zeroed when a new project was generated after + the wizard was closed. The idle time would be calculated from the time the previous project + closed, thus inflating the value. Issue #1149. PR #1159. +* Fixes an issue where the window size of the Preferences dialog would have the GUI scaling factor + applied twice when the dialog was closed, resulting in the dialog growing in size each time it is + opened. Issue #989. PR #1159. + +**Other Changes** + +* The text editor no longer creates a Unicode line separator (U+2028) when the user presses + `Shift+Enter`. The line separator serves no purpose in a plain text editor, and the code in + general treats them as regular line break. This caused the line separator to display differently + before and after saving. The line separator character is now automatically replaced by a + paragraph separator. Issue #1150. PR #1159. + +---- + ## Version 1.6.4 [2022-09-29] ### Release Notes diff --git a/novelwriter/__init__.py b/novelwriter/__init__.py index 2ee812f4..2b40a55f 100644 --- a/novelwriter/__init__.py +++ b/novelwriter/__init__.py @@ -60,9 +60,9 @@ __license__ = "GPLv3" __author__ = "Veronica Berglyd Olsen" __maintainer__ = "Veronica Berglyd Olsen" __email__ = "code@vkbo.net" -__version__ = "1.6.4" -__hexversion__ = "0x010604f0" -__date__ = "2022-09-29" +__version__ = "1.6.5" +__hexversion__ = "0x010605f0" +__date__ = "2022-10-13" __status__ = "Stable" __domain__ = "novelwriter.io" __url__ = "https://novelwriter.io" diff --git a/novelwriter/assets/text/release_notes.htm b/novelwriter/assets/text/release_notes.htm index 1cc14d48..34c423a8 100644 --- a/novelwriter/assets/text/release_notes.htm +++ b/novelwriter/assets/text/release_notes.htm @@ -70,5 +70,15 @@ disappears. It was not necessarily obvious how the viewer panel could be restore basically no longer worked in the 1.6.3 release. This release also fixes a minor issue where the text cursor sometimes disappears when reaching the right-hand edge of the text editor window.

+

Patch 1.6.5 – 13 October 2022

+ +

This is a bugfix release that fixes a a few minor issues. The idle time for new projects would +be artificially inflated as the clock was not reset when the project was first created. This only +affects the first entry in the writing statistics. A scaling issue for the Preferences dialog has +also been fixed. It only affected screens with UI scaling enabled. Lastly, typing Shift+Enter in +the text editor now creates a regular line break instead of a special line separator. The line +separator serves no purpose in plain text, and was producing inconsistencies in how text is +processed and displayed.

+ diff --git a/novelwriter/dialogs/preferences.py b/novelwriter/dialogs/preferences.py index 81bef52a..3b7f688c 100644 --- a/novelwriter/dialogs/preferences.py +++ b/novelwriter/dialogs/preferences.py @@ -128,9 +128,7 @@ class GuiPreferences(PagedDialog): def _saveWindowSize(self): """Save the dialog window size. """ - winWidth = self.mainConf.rpxInt(self.width()) - winHeight = self.mainConf.rpxInt(self.height()) - self.mainConf.setPreferencesSize(winWidth, winHeight) + self.mainConf.setPreferencesSize(self.width(), self.height()) return # END Class GuiPreferences diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index f2412242..83d971d5 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -1982,6 +1982,11 @@ class GuiDocEditor(QTextEdit): nDelete = 3 tInsert = nwUnicode.U_HELLIP + elif theOne == nwUnicode.U_LSEP: + # This resolves issue #1150 + nDelete = 1 + tInsert = nwUnicode.U_PSEP + tCheck = tInsert if tCheck in self.mainConf.fmtPadBefore: if self._allowSpaceBeforeColon(theText, tCheck): diff --git a/novelwriter/guimain.py b/novelwriter/guimain.py index f0aa7899..9399c9a7 100644 --- a/novelwriter/guimain.py +++ b/novelwriter/guimain.py @@ -383,16 +383,24 @@ class GuiMain(QMainWindow): logger.info("Creating new project") if self.theProject.newProject(projData): + self.hasProject = True + self.idleRefTime = time() + self.idleTime = 0.0 + self.rebuildTrees() self.saveProject() + self.docEditor.setDictionaries() self.rebuildIndex(beQuiet=True) + self.statusBar.setRefTime(self.theProject.projOpened) self.statusBar.setProjectStatus(nwState.GOOD) self.statusBar.setDocumentStatus(nwState.NONE) self.statusBar.setStatus(self.tr("New project created ...")) + self._updateWindowTitle(self.theProject.projName) + else: self.theProject.clearProject() return False diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index 436f8362..1a9abc5a 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,13 +1,13 @@ - + Sample Project Sample Project Jane Smith Jay Doh - 1305 + 1306 199 - 65071 + 65126 False @@ -285,7 +285,7 @@ 1st Draft True DOCUMENT - 315 + 314 55 1 322