Should only show Keep/Discard dialog when it's needed

CURA-4599
This commit is contained in:
Lipu Fei 2017-11-22 09:32:17 +01:00
parent 31c859b3d7
commit aeb478bb4b

View file

@ -867,6 +867,8 @@ class MachineManager(QObject):
# show the keep/discard dialog after the containers have been switched. Otherwise, the default values on
# the dialog will be the those before the switching.
self._executeDelayedActiveContainerStackChanges()
if self.hasUserSettings and Preferences.getInstance().getValue("cura/active_mode") == 1:
Application.getInstance().discardOrKeepProfileChanges()
## Used to update material and variant in the active container stack with a delay.