Reset the model when pressing the Add cloud printer button

CURA-7022
This commit is contained in:
Kostas Karmas 2020-04-28 12:08:48 +02:00
parent 1d4225a44a
commit 6583f5f5ac
4 changed files with 9 additions and 6 deletions

View file

@ -146,7 +146,7 @@ class CloudOutputDeviceManager:
self._remote_clusters[device.getId()] = device
remote_clusters_added = True
CuraApplication.getInstance().getDiscoveredUltimakerCloudPrintersModel().addDiscoveredUltimakerCloudPrinter(new_devices)
CuraApplication.getInstance().getDiscoveredUltimakerCloudPrintersModel().addDiscoveredUltimakerCloudPrinters(new_devices)
if not new_devices:
if remote_clusters_added: