Merge 1.5.3 fixes (#940)

* Resolve #918
* Resolve #935
* Bump version and update changelog and release notes
This commit is contained in:
Veronica Berglyd Olsen
2021-12-31 14:58:17 +01:00
committed by GitHub
parent 5e2ab4f612
commit 5afd402c8b
5 changed files with 48 additions and 9 deletions
+25
View File
@@ -1,5 +1,30 @@
# novelWriter Changelog
## Version 1.5.3 [2021-12-31]
### Release Notes
This is a bugfix release that fixes two cosmetic issues. The first fix resolves and issue with the
emphasis of partition or chapter items in the project tree not changing when the item is changed to
a scene item. The second fix changes how the Create Root Folder submenu works. Instead of disabling
the menu entries that are no longer available, they are instead removed. Disabled menu entries are
not displayed correctly in all colour themes.
### Detailed Changelog
**Bugfixes**
* The syntax themes lack a proper colouring for disabled menu entries. The only place menu entries
are disabled is in the Create Root Folder menu, so the simplest solution was to just replace the
enable/disable logic with switching on and off visibility like other menus in novelWriter do.
Issue #918.
* The if-condition that determined whether an item in the Project Tree were to receive a bold and
underline formatting for its label lacked the logic to disable these when the item should not
receive it any longer. I.e., when a chapter was converted to a scene, the emphasis remained.
Issue #935.
----
## Version 1.5.2 [2021-12-12]
### Release Notes
+13 -2
View File
@@ -2,6 +2,19 @@
<html>
<body>
<h2>Release Notes for 1.5.3</h2>
<p><i>Released on 31 December 2021</i></p>
<p>This is a bugfix release that fixes two cosmetic issues. The first fix resolves and issue with
the emphasis of partition or chapter items in the project tree not changing when the item is
changed to a scene item. The second fix changes how the Create Root Folder submenu works. Instead
of disabling the menu entries that are no longer available, they are instead removed. Disabled menu
entries are not displayed correctly in all colour themes.</p>
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
<hr/>
<h2>Release Notes for 1.5.2</h2>
<p><i>Released on 12 December 2021</i></p>
@@ -10,8 +23,6 @@ output if a paragraph has alignment or indentation tags while at the same time c
emphasised text. The second is an issue where the application cannot load a project with spell
checking enabled if there is something wrong with the spell check package.</p>
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
<hr/>
<h2>Release Notes for 1.5.1</h2>
+1 -1
View File
@@ -84,7 +84,7 @@ class GuiMainMenu(QMenuBar):
continue
if itemClass == nwItemClass.TRASH:
continue
self.rootItems[itemClass].setEnabled(
self.rootItems[itemClass].setVisible(
self.theProject.projTree.checkRootUnique(itemClass)
)
return
+5 -2
View File
@@ -628,11 +628,14 @@ class GuiProjectTree(QTreeWidget):
trItem.setToolTip(self.C_STATUS, nwItem.itemStatus)
if self.mainConf.emphLabels and nwItem.itemLayout == nwItemLayout.DOCUMENT:
trFont = trItem.font(self.C_NAME)
if hLevel in ("H1", "H2"):
trFont = trItem.font(self.C_NAME)
trFont.setBold(True)
trFont.setUnderline(True)
trItem.setFont(self.C_NAME, trFont)
else:
trFont.setBold(False)
trFont.setUnderline(False)
trItem.setFont(self.C_NAME, trFont)
return
+4 -4
View File
@@ -1,13 +1,13 @@
<?xml version='1.0' encoding='utf-8'?>
<novelWriterXML appVersion="1.5.1" hexVersion="0x010501f0" fileVersion="1.3" timeStamp="2021-10-23 16:03:04">
<novelWriterXML appVersion="1.6-alpha0" hexVersion="0x010600a0" fileVersion="1.3" timeStamp="2021-12-31 14:54:41">
<project>
<name>Sample Project</name>
<title>Sample Project</title>
<author>Jane Smith</author>
<author>Jay Doh</author>
<saveCount>1260</saveCount>
<saveCount>1265</saveCount>
<autoCount>198</autoCount>
<editTime>62008</editTime>
<editTime>62062</editTime>
</project>
<settings>
<doBackup>False</doBackup>
@@ -121,7 +121,7 @@
<charCount>2429</charCount>
<wordCount>432</wordCount>
<paraCount>14</paraCount>
<cursorPos>1760</cursorPos>
<cursorPos>2</cursorPos>
</item>
<item handle="bc0cbd2a407f3" order="2" parent="e7ded148d6e4a">
<name>Another Scene</name>