From 7fa7fdee3f5f2bdc7a997a0e7aafe0c2e04bbf5d Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 20 May 2025 21:39:16 +0200 Subject: [PATCH] Make a small optimisation to build settings dialog --- novelwriter/tools/manussettings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/novelwriter/tools/manussettings.py b/novelwriter/tools/manussettings.py index 967a03ff..e5ddc66b 100644 --- a/novelwriter/tools/manussettings.py +++ b/novelwriter/tools/manussettings.py @@ -211,11 +211,12 @@ class GuiBuildSettings(NToolDialog): @pyqtSlot("QAbstractButton*") def _dialogButtonClicked(self, button: QAbstractButton) -> None: """Handle button clicks from the dialog button box.""" - self._applyChanges() role = self.buttonBox.buttonRole(button) if role == QtRoleApply: + self._applyChanges() self._emitBuildData() elif role == QtRoleAccept: + self._applyChanges() self._emitBuildData() self.close() elif role == QtRoleReject: