mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:55:54 +08:00
Fixes namechanges caused by api change
This commit is contained in:
parent
0daf2301a7
commit
a9208ccf3f
@ -400,7 +400,7 @@ class CuraApplication(QtApplication):
|
|||||||
def getSettingValue(self, key):
|
def getSettingValue(self, key):
|
||||||
if not self.getMachineManager().getActiveProfile():
|
if not self.getMachineManager().getActiveProfile():
|
||||||
return None
|
return None
|
||||||
return self.getMachineManager().getActiveProfile().getSettingValueByKey(key)
|
return self.getMachineManager().getActiveProfile().getSettingValue(key)
|
||||||
#return self.getActiveMachine().getSettingValueByKey(key)
|
#return self.getActiveMachine().getSettingValueByKey(key)
|
||||||
|
|
||||||
## Change setting by key value pair
|
## Change setting by key value pair
|
||||||
@ -409,7 +409,7 @@ class CuraApplication(QtApplication):
|
|||||||
if not self.getMachineManager().getActiveProfile():
|
if not self.getMachineManager().getActiveProfile():
|
||||||
return
|
return
|
||||||
|
|
||||||
self.getMachineManager().getActiveProfile().getSettingValueByKey(key, value)
|
self.getMachineManager().getActiveProfile().setSettingValue(key, value)
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def mergeSelected(self):
|
def mergeSelected(self):
|
||||||
|
@ -133,7 +133,7 @@ Rectangle
|
|||||||
if(model.getItem(i).name == UM.MachineManager.activeProfile)
|
if(model.getItem(i).name == UM.MachineManager.activeProfile)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
UM.MachineManager.setActiveProfile(model.getItem(0).name)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user