mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 15:59:01 +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):
|
||||
if not self.getMachineManager().getActiveProfile():
|
||||
return None
|
||||
return self.getMachineManager().getActiveProfile().getSettingValueByKey(key)
|
||||
return self.getMachineManager().getActiveProfile().getSettingValue(key)
|
||||
#return self.getActiveMachine().getSettingValueByKey(key)
|
||||
|
||||
## Change setting by key value pair
|
||||
@ -409,7 +409,7 @@ class CuraApplication(QtApplication):
|
||||
if not self.getMachineManager().getActiveProfile():
|
||||
return
|
||||
|
||||
self.getMachineManager().getActiveProfile().getSettingValueByKey(key, value)
|
||||
self.getMachineManager().getActiveProfile().setSettingValue(key, value)
|
||||
|
||||
@pyqtSlot()
|
||||
def mergeSelected(self):
|
||||
|
@ -133,7 +133,7 @@ Rectangle
|
||||
if(model.getItem(i).name == UM.MachineManager.activeProfile)
|
||||
return i;
|
||||
}
|
||||
|
||||
UM.MachineManager.setActiveProfile(model.getItem(0).name)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user