mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 12:25:54 +08:00
Fix: Refresh list of available printers in network
after clicking refresh button.
This commit is contained in:
parent
c21b19a910
commit
097c97b6f8
@ -82,6 +82,9 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
self._zero_conf_browser.cancel()
|
self._zero_conf_browser.cancel()
|
||||||
self._zero_conf_browser = None # Force the old ServiceBrowser to be destroyed.
|
self._zero_conf_browser = None # Force the old ServiceBrowser to be destroyed.
|
||||||
|
|
||||||
|
for instance_name in list(self._discovered_devices):
|
||||||
|
self._onRemoveDevice(instance_name)
|
||||||
|
|
||||||
self._zero_conf = Zeroconf()
|
self._zero_conf = Zeroconf()
|
||||||
self._zero_conf_browser = ServiceBrowser(self._zero_conf, u'_ultimaker._tcp.local.',
|
self._zero_conf_browser = ServiceBrowser(self._zero_conf, u'_ultimaker._tcp.local.',
|
||||||
[self._appendServiceChangedRequest])
|
[self._appendServiceChangedRequest])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user