mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Show keep/discard dialog upon material change if there are user changes
CURA-5417
This commit is contained in:
parent
9627eb0fc1
commit
1c3bae3fe4
1 changed files with 4 additions and 0 deletions
|
@ -1331,6 +1331,10 @@ class MachineManager(QObject):
|
|||
self._setMaterial(position, container_node)
|
||||
self._updateQualityWithMaterial()
|
||||
|
||||
# See if we need to show the Discard or Keep changes screen
|
||||
if self.hasUserSettings and Preferences.getInstance().getValue("cura/active_mode") == 1:
|
||||
self._application.discardOrKeepProfileChanges()
|
||||
|
||||
@pyqtSlot(str, str)
|
||||
def setVariantByName(self, position: str, variant_name: str) -> None:
|
||||
machine_definition_id = self._global_container_stack.definition.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue