mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Checking first if the user has enabled the 'check for updates' preference - CURA-4224
This commit is contained in:
parent
80992dd44c
commit
aa2c7c2ff6
1 changed files with 5 additions and 2 deletions
|
@ -26,8 +26,11 @@ class FirmwareUpdateChecker(Extension):
|
||||||
# checked for the UM3. In the future if we need to check other printers' firmware
|
# checked for the UM3. In the future if we need to check other printers' firmware
|
||||||
Preferences.getInstance().addPreference("info/latest_checked_firmware", "")
|
Preferences.getInstance().addPreference("info/latest_checked_firmware", "")
|
||||||
|
|
||||||
# Listen to a Signal that indicates a change in the active printer
|
# Listen to a Signal that indicates a change in the list of printers, just if the user has enabled the
|
||||||
ContainerRegistry.getInstance().containerAdded.connect(self._onContainerAdded)
|
# 'check for updates' option
|
||||||
|
Preferences.getInstance().addPreference("info/automatic_update_check", True)
|
||||||
|
if Preferences.getInstance().getValue("info/automatic_update_check"):
|
||||||
|
ContainerRegistry.getInstance().containerAdded.connect(self._onContainerAdded)
|
||||||
|
|
||||||
def _onContainerAdded(self, container):
|
def _onContainerAdded(self, container):
|
||||||
# Only take care when a new GlobaStack was added
|
# Only take care when a new GlobaStack was added
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue