mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Switching profiles now shows a new dialog with all the changes.
CURA-3221
This commit is contained in:
parent
b0c8a4df7a
commit
2462699982
5 changed files with 270 additions and 3 deletions
|
@ -957,7 +957,8 @@ class MachineManager(QObject):
|
|||
details = "\n ".join([details_text, ] + details_list)
|
||||
|
||||
num_changed_settings = len(details_list)
|
||||
Application.getInstance().messageBox(
|
||||
Application.getInstance().discardOrKeepProfileChanges()
|
||||
'''Application.getInstance().messageBox(
|
||||
catalog.i18nc("@window:title", "Switched profiles"),
|
||||
catalog.i18nc(
|
||||
"@label",
|
||||
|
@ -968,7 +969,7 @@ class MachineManager(QObject):
|
|||
details,
|
||||
buttons=QMessageBox.Yes + QMessageBox.No,
|
||||
icon=QMessageBox.Question,
|
||||
callback=self._keepUserSettingsDialogCallback)
|
||||
callback=self._keepUserSettingsDialogCallback)'''
|
||||
|
||||
def _keepUserSettingsDialogCallback(self, button):
|
||||
if button == QMessageBox.Yes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue