mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Fixed all codestyle and nitpicks from review
This commit is contained in:
parent
e465bd771a
commit
3c10cca0de
7 changed files with 39 additions and 38 deletions
|
@ -41,7 +41,7 @@ class CloudOutputDeviceManager:
|
|||
self._account = application.getCuraAPI().account # type: Account
|
||||
self._api = CloudApiClient(self._account, self._onApiError)
|
||||
|
||||
# create a timer to update the remote cluster list
|
||||
# Create a timer to update the remote cluster list
|
||||
self._update_timer = QTimer(application)
|
||||
self._update_timer.setInterval(int(self.CHECK_CLUSTER_INTERVAL * 1000))
|
||||
self._update_timer.setSingleShot(False)
|
||||
|
@ -99,7 +99,6 @@ class CloudOutputDeviceManager:
|
|||
def _connectToActiveMachine(self) -> None:
|
||||
active_machine = CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if not active_machine:
|
||||
Logger.log("d", "no active machine")
|
||||
return
|
||||
|
||||
# Remove all output devices that we have registered.
|
||||
|
@ -143,8 +142,7 @@ class CloudOutputDeviceManager:
|
|||
message = Message(
|
||||
text = text,
|
||||
title = self.I18N_CATALOG.i18nc("@info:title", "Error"),
|
||||
lifetime = 10,
|
||||
dismissable = True
|
||||
lifetime = 10
|
||||
)
|
||||
message.show()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue