Better refresh button: now emits signal and re-instantiates zeroconf.

Signal emits let the UI display an empty list.
Re-instantiation copes with network changes.

Contributes to CURA-2372
This commit is contained in:
Jack Ha 2016-09-28 16:36:09 +02:00
parent 1ed3fc7c37
commit da4ea2e450
2 changed files with 8 additions and 4 deletions

View file

@ -104,7 +104,6 @@ class DiscoverUM3Action(MachineAction):
def _createAdditionalComponentsView(self):
Logger.log("d", "Creating additional ui components for UM3.")
path = QUrl.fromLocalFile(os.path.join(PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"), "UM3InfoComponents.qml"))
self.__additional_component = QQmlComponent(Application.getInstance()._engine, path)