mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-01 04:32:02 +08:00
Partially solve setting the UMO heated bed kit option
CURA-580
This commit is contained in:
parent
35107742d6
commit
b9857a6975
@ -12,6 +12,9 @@ class UMOUpgradeSelection(MachineAction):
|
|||||||
super().__init__("UMOUpgradeSelection", catalog.i18nc("@action", "Select upgrades"))
|
super().__init__("UMOUpgradeSelection", catalog.i18nc("@action", "Select upgrades"))
|
||||||
self._qml_url = "UMOUpgradeSelectionMachineAction.qml"
|
self._qml_url = "UMOUpgradeSelectionMachineAction.qml"
|
||||||
|
|
||||||
|
def _reset(self):
|
||||||
|
self.heatedBedChanged.emit()
|
||||||
|
|
||||||
heatedBedChanged = pyqtSignal()
|
heatedBedChanged = pyqtSignal()
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = heatedBedChanged)
|
@pyqtProperty(bool, notify = heatedBedChanged)
|
||||||
|
@ -44,7 +44,7 @@ Cura.MachineAction
|
|||||||
|
|
||||||
text: catalog.i18nc("@label", "Heated bed (official kit or self-built)")
|
text: catalog.i18nc("@label", "Heated bed (official kit or self-built)")
|
||||||
checked: manager.hasHeatedBed
|
checked: manager.hasHeatedBed
|
||||||
onClicked: manager.hasHeatedBed ? manager.removeHeatedBed() : manager.addHeatedBed()
|
onClicked: checked ? manager.addHeatedBed() : manager.removeHeatedBed()
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.I18nCatalog { id: catalog; name: "cura"; }
|
UM.I18nCatalog { id: catalog; name: "cura"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user