From 2b0216a398091cf6933b7cee179513be90fa37f2 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 1 Dec 2022 23:12:46 +0100 Subject: [PATCH 01/24] Changing colouring preferences on the highlighting tab needs to re-init the syntax highlighter (#1274) --- novelwriter/dialogs/preferences.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/novelwriter/dialogs/preferences.py b/novelwriter/dialogs/preferences.py index 7804c0a6..e7936991 100644 --- a/novelwriter/dialogs/preferences.py +++ b/novelwriter/dialogs/preferences.py @@ -826,6 +826,7 @@ class GuiPreferencesSyntax(QWidget): super().__init__(parent=prefsGui) self.mainConf = novelwriter.CONFIG + self.prefsGui = prefsGui self.mainGui = prefsGui.mainGui self.mainTheme = prefsGui.mainGui.mainTheme @@ -893,16 +894,21 @@ class GuiPreferencesSyntax(QWidget): def saveValues(self): """Save the values set for this tab. """ - # Quotes & Dialogue - self.mainConf.highlightQuotes = self.highlightQuotes.isChecked() - self.mainConf.allowOpenSQuote = self.allowOpenSQuote.isChecked() - self.mainConf.allowOpenDQuote = self.allowOpenDQuote.isChecked() + highlightQuotes = self.highlightQuotes.isChecked() + allowOpenSQuote = self.allowOpenSQuote.isChecked() + allowOpenDQuote = self.allowOpenDQuote.isChecked() + highlightEmph = self.highlightEmph.isChecked() + showMultiSpaces = self.showMultiSpaces.isChecked() - # Text Emphasis - self.mainConf.highlightEmph = self.highlightEmph.isChecked() + self.prefsGui._updateSyntax |= self.mainConf.highlightQuotes != highlightQuotes + self.prefsGui._updateSyntax |= self.mainConf.highlightEmph != highlightEmph + self.prefsGui._updateSyntax |= self.mainConf.showMultiSpaces != showMultiSpaces - # Text Errors - self.mainConf.showMultiSpaces = self.showMultiSpaces.isChecked() + self.mainConf.highlightQuotes = highlightQuotes + self.mainConf.allowOpenSQuote = allowOpenSQuote + self.mainConf.allowOpenDQuote = allowOpenDQuote + self.mainConf.highlightEmph = highlightEmph + self.mainConf.showMultiSpaces = showMultiSpaces return From 594ccd45c762ccbe622af5883a74544048168f8e Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 1 Dec 2022 23:21:00 +0100 Subject: [PATCH 02/24] Fix linux workflow --- .github/workflows/test_linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_linux.yml b/.github/workflows/test_linux.yml index 9535e435..46aff466 100644 --- a/.github/workflows/test_linux.yml +++ b/.github/workflows/test_linux.yml @@ -25,7 +25,7 @@ jobs: - name: Install Packages (apt) run: | sudo apt update - sudo apt install libenchant-dev qttools5-dev-tools aspell-en + sudo apt install libenchant-2-dev qttools5-dev-tools aspell-en - name: Checkout Source uses: actions/checkout@v3 - name: Install Dependencies (pip) From b1def7b568c876912888f47687d99ece338f0050 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 1 Dec 2022 23:33:16 +0100 Subject: [PATCH 03/24] Release 2.0.2 --- CHANGELOG.md | 22 ++++++++++++++++++++++ novelwriter/__init__.py | 6 +++--- novelwriter/assets/text/release_notes.htm | 5 +++++ sample/nwProject.nwx | 4 ++-- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b5eed0..2c5b83aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # novelWriter Changelog +## Version 2.0.2 [2022-12-01] + +### Release Notes + +This is a patch release that fixes a minor issues with syntax highlighting not updating when the +highlighting preferences were changed. It also fixes an issue that broke the FreeBSD release. + +### Detailed Changelog + +**Bugfixes** + +* Fix an issue where changing the Highlighting Preferences for highlighting quotes, emphasis, and + multiple or trailing spaces would not reload the syntax highlighter in the editor. The changes + would only take effect after restarting the app. Issue #1274. PR #1278. + +**Packaging and Installation** + +* The 2.0.1 release was broken on Linux, but was fixed and the packages rebuilt. However, the + FreeBSD port was still broken. This release fixes this issue. Issue #1277. PR #1272. + +---- + ## Version 2.0.1 [2022-11-29] ### Release Notes diff --git a/novelwriter/__init__.py b/novelwriter/__init__.py index d9c523a6..1f24c66c 100644 --- a/novelwriter/__init__.py +++ b/novelwriter/__init__.py @@ -59,9 +59,9 @@ __license__ = "GPLv3" __author__ = "Veronica Berglyd Olsen" __maintainer__ = "Veronica Berglyd Olsen" __email__ = "code@vkbo.net" -__version__ = "2.0.1" -__hexversion__ = "0x020001f0" -__date__ = "2022-11-29" +__version__ = "2.0.2" +__hexversion__ = "0x020002f0" +__date__ = "2022-12-01" __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 33e4b269..7570c272 100644 --- a/novelwriter/assets/text/release_notes.htm +++ b/novelwriter/assets/text/release_notes.htm @@ -94,5 +94,10 @@ Project Settings dialog has been updated to reflect some of the same changes.
This is a patch release that fixes a minor issues with loading custom GUI themes that haven't been updated to include the icon theme setting. The patch also updates the French translation. +This is a patch release that fixes a minor issues with syntax highlighting not updating when the +highlighting preferences were changed. It also fixes an issue that broke the FreeBSD release.
+