From 0cee5b78df96f44d7dae7b632fc003bd8ce17782 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 23 Jun 2016 14:25:46 +0200 Subject: [PATCH] Print discovery now lists all found human readable names CURA-336 --- DiscoverUM3Action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscoverUM3Action.py b/DiscoverUM3Action.py index be71a05e28..68da635e11 100644 --- a/DiscoverUM3Action.py +++ b/DiscoverUM3Action.py @@ -26,7 +26,7 @@ class DiscoverUM3Action(MachineAction): @pyqtProperty("QVariantList", notify = printerDetected) def foundDevices(self): if self._network_plugin: - - return list(self._network_plugin.getPrinters().keys()) + printers = self._network_plugin.getPrinters() + return([printers[printer].getProperties().get(b"name").decode("utf-8") for printer in printers]) else: return []