mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 01:04:35 +08:00
Remove get/setSettingValue from CuraApplication
They are unused and should not be used anyway
This commit is contained in:
parent
adc699c63b
commit
08afad8973
@ -511,20 +511,6 @@ class CuraApplication(QtApplication):
|
|||||||
def expandedCategories(self):
|
def expandedCategories(self):
|
||||||
return Preferences.getInstance().getValue("cura/categories_expanded").split(";")
|
return Preferences.getInstance().getValue("cura/categories_expanded").split(";")
|
||||||
|
|
||||||
@pyqtSlot(str, result = "QVariant")
|
|
||||||
def getSettingValue(self, key):
|
|
||||||
if not self._global_container_stack:
|
|
||||||
return None
|
|
||||||
return self._global_container_stack.getValue(key)
|
|
||||||
|
|
||||||
## Change setting by key value pair
|
|
||||||
@pyqtSlot(str, "QVariant")
|
|
||||||
def setSettingValue(self, key, value):
|
|
||||||
if not self.getMachineManager().getWorkingProfile():
|
|
||||||
return
|
|
||||||
|
|
||||||
self.getMachineManager().getWorkingProfile().setSettingValue(key, value)
|
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def mergeSelected(self):
|
def mergeSelected(self):
|
||||||
self.groupSelected()
|
self.groupSelected()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user