Patch 1.6.5 (#1159)
This commit is contained in:
@@ -1,5 +1,38 @@
|
|||||||
# novelWriter Changelog
|
# 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]
|
## Version 1.6.4 [2022-09-29]
|
||||||
|
|
||||||
### Release Notes
|
### Release Notes
|
||||||
|
|||||||
@@ -60,9 +60,9 @@ __license__ = "GPLv3"
|
|||||||
__author__ = "Veronica Berglyd Olsen"
|
__author__ = "Veronica Berglyd Olsen"
|
||||||
__maintainer__ = "Veronica Berglyd Olsen"
|
__maintainer__ = "Veronica Berglyd Olsen"
|
||||||
__email__ = "code@vkbo.net"
|
__email__ = "code@vkbo.net"
|
||||||
__version__ = "1.6.4"
|
__version__ = "1.6.5"
|
||||||
__hexversion__ = "0x010604f0"
|
__hexversion__ = "0x010605f0"
|
||||||
__date__ = "2022-09-29"
|
__date__ = "2022-10-13"
|
||||||
__status__ = "Stable"
|
__status__ = "Stable"
|
||||||
__domain__ = "novelwriter.io"
|
__domain__ = "novelwriter.io"
|
||||||
__url__ = "https://novelwriter.io"
|
__url__ = "https://novelwriter.io"
|
||||||
|
|||||||
@@ -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
|
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.</p>
|
text cursor sometimes disappears when reaching the right-hand edge of the text editor window.</p>
|
||||||
|
|
||||||
|
<h3>Patch 1.6.5 – 13 October 2022</h3>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -128,9 +128,7 @@ class GuiPreferences(PagedDialog):
|
|||||||
def _saveWindowSize(self):
|
def _saveWindowSize(self):
|
||||||
"""Save the dialog window size.
|
"""Save the dialog window size.
|
||||||
"""
|
"""
|
||||||
winWidth = self.mainConf.rpxInt(self.width())
|
self.mainConf.setPreferencesSize(self.width(), self.height())
|
||||||
winHeight = self.mainConf.rpxInt(self.height())
|
|
||||||
self.mainConf.setPreferencesSize(winWidth, winHeight)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# END Class GuiPreferences
|
# END Class GuiPreferences
|
||||||
|
|||||||
@@ -1982,6 +1982,11 @@ class GuiDocEditor(QTextEdit):
|
|||||||
nDelete = 3
|
nDelete = 3
|
||||||
tInsert = nwUnicode.U_HELLIP
|
tInsert = nwUnicode.U_HELLIP
|
||||||
|
|
||||||
|
elif theOne == nwUnicode.U_LSEP:
|
||||||
|
# This resolves issue #1150
|
||||||
|
nDelete = 1
|
||||||
|
tInsert = nwUnicode.U_PSEP
|
||||||
|
|
||||||
tCheck = tInsert
|
tCheck = tInsert
|
||||||
if tCheck in self.mainConf.fmtPadBefore:
|
if tCheck in self.mainConf.fmtPadBefore:
|
||||||
if self._allowSpaceBeforeColon(theText, tCheck):
|
if self._allowSpaceBeforeColon(theText, tCheck):
|
||||||
|
|||||||
@@ -383,16 +383,24 @@ class GuiMain(QMainWindow):
|
|||||||
|
|
||||||
logger.info("Creating new project")
|
logger.info("Creating new project")
|
||||||
if self.theProject.newProject(projData):
|
if self.theProject.newProject(projData):
|
||||||
|
|
||||||
self.hasProject = True
|
self.hasProject = True
|
||||||
|
self.idleRefTime = time()
|
||||||
|
self.idleTime = 0.0
|
||||||
|
|
||||||
self.rebuildTrees()
|
self.rebuildTrees()
|
||||||
self.saveProject()
|
self.saveProject()
|
||||||
|
|
||||||
self.docEditor.setDictionaries()
|
self.docEditor.setDictionaries()
|
||||||
self.rebuildIndex(beQuiet=True)
|
self.rebuildIndex(beQuiet=True)
|
||||||
|
|
||||||
self.statusBar.setRefTime(self.theProject.projOpened)
|
self.statusBar.setRefTime(self.theProject.projOpened)
|
||||||
self.statusBar.setProjectStatus(nwState.GOOD)
|
self.statusBar.setProjectStatus(nwState.GOOD)
|
||||||
self.statusBar.setDocumentStatus(nwState.NONE)
|
self.statusBar.setDocumentStatus(nwState.NONE)
|
||||||
self.statusBar.setStatus(self.tr("New project created ..."))
|
self.statusBar.setStatus(self.tr("New project created ..."))
|
||||||
|
|
||||||
self._updateWindowTitle(self.theProject.projName)
|
self._updateWindowTitle(self.theProject.projName)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.theProject.clearProject()
|
self.theProject.clearProject()
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<novelWriterXML appVersion="1.6.4" hexVersion="0x010604f0" fileVersion="1.3" timeStamp="2022-09-29 19:23:00">
|
<novelWriterXML appVersion="1.6.5" hexVersion="0x010605f0" fileVersion="1.3" timeStamp="2022-10-13 10:43:08">
|
||||||
<project>
|
<project>
|
||||||
<name>Sample Project</name>
|
<name>Sample Project</name>
|
||||||
<title>Sample Project</title>
|
<title>Sample Project</title>
|
||||||
<author>Jane Smith</author>
|
<author>Jane Smith</author>
|
||||||
<author>Jay Doh</author>
|
<author>Jay Doh</author>
|
||||||
<saveCount>1305</saveCount>
|
<saveCount>1306</saveCount>
|
||||||
<autoCount>199</autoCount>
|
<autoCount>199</autoCount>
|
||||||
<editTime>65071</editTime>
|
<editTime>65126</editTime>
|
||||||
</project>
|
</project>
|
||||||
<settings>
|
<settings>
|
||||||
<doBackup>False</doBackup>
|
<doBackup>False</doBackup>
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
<status>1st Draft</status>
|
<status>1st Draft</status>
|
||||||
<exported>True</exported>
|
<exported>True</exported>
|
||||||
<layout>DOCUMENT</layout>
|
<layout>DOCUMENT</layout>
|
||||||
<charCount>315</charCount>
|
<charCount>314</charCount>
|
||||||
<wordCount>55</wordCount>
|
<wordCount>55</wordCount>
|
||||||
<paraCount>1</paraCount>
|
<paraCount>1</paraCount>
|
||||||
<cursorPos>322</cursorPos>
|
<cursorPos>322</cursorPos>
|
||||||
|
|||||||
Reference in New Issue
Block a user