Switching profiles now shows a new dialog with all the changes.

CURA-3221
This commit is contained in:
Jaime van Kessel 2017-02-28 10:25:42 +01:00
parent b0c8a4df7a
commit 2462699982
5 changed files with 270 additions and 3 deletions

View file

@ -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: