mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Code style: Use double quotes for strings
Contributes to issue CURA-5483.
This commit is contained in:
parent
69cef98c30
commit
6ac10db582
3 changed files with 18 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import os
|
||||
|
@ -31,7 +31,7 @@ class FirmwareUpdateChecker(Extension):
|
|||
super().__init__()
|
||||
|
||||
# Listen to a Signal that indicates a change in the list of printers, just if the user has enabled the
|
||||
# 'check for updates' option
|
||||
# "check for updates" option
|
||||
Application.getInstance().getPreferences().addPreference("info/automatic_update_check", True)
|
||||
if Application.getInstance().getPreferences().getValue("info/automatic_update_check"):
|
||||
ContainerRegistry.getInstance().containerAdded.connect(self._onContainerAdded)
|
||||
|
@ -49,9 +49,9 @@ class FirmwareUpdateChecker(Extension):
|
|||
if download_url is not None:
|
||||
QDesktopServices.openUrl(QUrl(download_url))
|
||||
else:
|
||||
Logger.log('e', "Can't find URL for {0}".format(action))
|
||||
Logger.log("e", "Can't find URL for {0}".format(action))
|
||||
except Exception as ex:
|
||||
Logger.log('e', "Don't know what to do with '{0}' because {1}".format(action, ex))
|
||||
Logger.log("e", "Don't know what to do with '{0}' because {1}".format(action, ex))
|
||||
|
||||
def _onContainerAdded(self, container):
|
||||
# Only take care when a new GlobalStack was added
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue