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

@ -202,7 +202,10 @@ Item
anchors.verticalCenter: parent.verticalCenter
text: catalog.i18nc("@label", "Add cloud printer")
height: UM.Theme.getSize("message_action_button").height
onClicked: base.addCloudPrinterButtonClicked()
onClicked: {
CuraApplication.getDiscoveredUltimakerCloudPrintersModel().clear()
base.addCloudPrinterButtonClicked()
}
}
Item