mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Reset menu selection without modifying the model
Contributes to CURA-853
This commit is contained in:
parent
e093c956f2
commit
b8113a9740
3 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ UM.MainWindow
|
|||
UM.MachineManager.setActiveProfile(model.name);
|
||||
if (!model.active) {
|
||||
//Selecting a profile was canceled; undo menu selection
|
||||
checked = false;
|
||||
profileMenuInstantiator.model.setProperty(index, "active", false);
|
||||
var activeProfileName = UM.MachineManager.activeProfile;
|
||||
var activeProfileIndex = profileMenuInstantiator.model.find("name", activeProfileName);
|
||||
profileMenuInstantiator.model.setProperty(activeProfileIndex, "active", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue