Skip to content

Commit

Permalink
Fix manual output devices not being added on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
nallath committed May 28, 2019
1 parent 376c544 commit 63316fa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ def removeManualDevice(self, key: str, address: Optional[str] = None) -> None:
self._application.callLater(manual_printer_request.callback, False, address)

def addManualDevice(self, address: str, callback: Optional[Callable[[bool, str], None]] = None) -> None:
if address in self._manual_instances:
Logger.log("i", "Manual printer with address [%s] has already been added, do nothing", address)
return

self._manual_instances[address] = ManualPrinterRequest(address, callback = callback)
self._preferences.setValue("um3networkprinting/manual_instances", ",".join(self._manual_instances.keys()))

Expand Down

0 comments on commit 63316fa

Please sign in to comment.