Make a small optimisation to build settings dialog

This commit is contained in:
Veronica Berglyd Olsen
2025-05-20 21:39:16 +02:00
parent f177f82417
commit 7fa7fdee3f
+2 -1
View File
@@ -211,11 +211,12 @@ class GuiBuildSettings(NToolDialog):
@pyqtSlot("QAbstractButton*") @pyqtSlot("QAbstractButton*")
def _dialogButtonClicked(self, button: QAbstractButton) -> None: def _dialogButtonClicked(self, button: QAbstractButton) -> None:
"""Handle button clicks from the dialog button box.""" """Handle button clicks from the dialog button box."""
self._applyChanges()
role = self.buttonBox.buttonRole(button) role = self.buttonBox.buttonRole(button)
if role == QtRoleApply: if role == QtRoleApply:
self._applyChanges()
self._emitBuildData() self._emitBuildData()
elif role == QtRoleAccept: elif role == QtRoleAccept:
self._applyChanges()
self._emitBuildData() self._emitBuildData()
self.close() self.close()
elif role == QtRoleReject: elif role == QtRoleReject: