mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Update typing to reflect new message that is being used
CURA-8463
This commit is contained in:
parent
ce3ab62c91
commit
f4c4b52d9b
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ from PyQt6.QtWidgets import QMessageBox
|
||||||
|
|
||||||
from UM import i18nCatalog
|
from UM import i18nCatalog
|
||||||
from UM.Logger import Logger # To log errors talking to the API.
|
from UM.Logger import Logger # To log errors talking to the API.
|
||||||
from UM.Message import Message
|
|
||||||
from UM.Settings.Interfaces import ContainerInterface
|
from UM.Settings.Interfaces import ContainerInterface
|
||||||
from UM.Signal import Signal
|
from UM.Signal import Signal
|
||||||
from UM.Util import parseBool
|
from UM.Util import parseBool
|
||||||
|
@ -56,7 +55,7 @@ class CloudOutputDeviceManager:
|
||||||
self._account: Account = CuraApplication.getInstance().getCuraAPI().account
|
self._account: Account = CuraApplication.getInstance().getCuraAPI().account
|
||||||
self._api = CloudApiClient(CuraApplication.getInstance(), on_error = lambda error: Logger.log("e", str(error)))
|
self._api = CloudApiClient(CuraApplication.getInstance(), on_error = lambda error: Logger.log("e", str(error)))
|
||||||
self._account.loginStateChanged.connect(self._onLoginStateChanged)
|
self._account.loginStateChanged.connect(self._onLoginStateChanged)
|
||||||
self._removed_printers_message: Optional[Message] = None
|
self._removed_printers_message: Optional[RemovedPrintersMessage] = None
|
||||||
|
|
||||||
# Ensure we don't start twice.
|
# Ensure we don't start twice.
|
||||||
self._running = False
|
self._running = False
|
||||||
|
@ -426,7 +425,7 @@ class CloudOutputDeviceManager:
|
||||||
if container_cluster_id in self._remote_clusters.keys():
|
if container_cluster_id in self._remote_clusters.keys():
|
||||||
del self._remote_clusters[container_cluster_id]
|
del self._remote_clusters[container_cluster_id]
|
||||||
|
|
||||||
def _onRemovedPrintersMessageActionTriggered(self, removed_printers_message: Message, action: str) -> None:
|
def _onRemovedPrintersMessageActionTriggered(self, removed_printers_message: RemovedPrintersMessage, action: str) -> None:
|
||||||
if action == "keep_printer_configurations_action":
|
if action == "keep_printer_configurations_action":
|
||||||
removed_printers_message.hide()
|
removed_printers_message.hide()
|
||||||
elif action == "remove_printers_action":
|
elif action == "remove_printers_action":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue