-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
Copyright 2020 Luc Rubio <[email protected]> | ||
Plugin is licensed under the GNU Lesser General Public License v3.0. | ||
""" | ||
from UM.Settings.Interfaces import ContainerInterface | ||
from typing import Optional, Callable, List, cast | ||
|
||
from PyQt5.QtCore import pyqtSignal, QObject | ||
|
||
from UM import i18nCatalog | ||
from UM.Logger import Logger | ||
from UM.Settings.ContainerRegistry import ContainerRegistry | ||
from UM.Settings.Interfaces import ContainerInterface | ||
from UM.Signal import Signal | ||
# pylint:disable=import-error | ||
from cura.CuraApplication import CuraApplication | ||
|
@@ -232,9 +232,6 @@ def _get_stored_manual_addresses(self) -> List[str]: | |
def _connect_to_output_device(self, device: MPSM2NetworkedPrinterOutputDevice, | ||
machine: GlobalStack) -> None: | ||
Logger.log('d', 'Connecting to Output Device with key: %s.', device.key) | ||
machine.setName(device.name) | ||
machine.setMetaDataEntry(self.METADATA_MPSM2_KEY, device.key) | ||
machine.setMetaDataEntry('group_name', device.name) | ||
machine.addConfiguredConnectionType(device.connectionType.value) | ||
|
||
if not device.isConnected(): | ||
|