Remove central messageBox in favour of local box

The profile import/export was the only place where it was used, in our code base.

Contributes to issue CURA-8687.
This commit is contained in:
Ghostkeeper 2022-02-04 14:31:27 +01:00
parent 9a3cab1ec2
commit 7f8591718d
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 9 additions and 58 deletions

View file

@ -675,22 +675,6 @@ class CuraApplication(QtApplication):
self._setLoadingHint(self._i18n_catalog.i18nc("@info:progress", "Initializing Active Machine..."))
super().setGlobalContainerStack(stack)
showMessageBox = pyqtSignal(str,str, str, str, int, int,
arguments = ["title", "text", "informativeText", "detailedText","buttons", "icon"])
"""A reusable dialogbox"""
def messageBox(self, title, text,
informativeText = "",
detailedText = "",
buttons = QMessageBox.Ok,
icon = QMessageBox.NoIcon,
callback = None,
callback_arguments = []
):
self._message_box_callback = callback
self._message_box_callback_arguments = callback_arguments
self.showMessageBox.emit(title, text, informativeText, detailedText, buttons, icon)
showDiscardOrKeepProfileChanges = pyqtSignal()
def discardOrKeepProfileChanges(self) -> bool: