Make a small optimisation to build settings dialog
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user