Initiate an account sync immediately after pressing "Add cloud printer"

It was a bit weird that the sync didn't happen immediately and you had to wait for 30seconds until the printer appeared.
This commit is contained in:
Konstantinos Karmas 2021-09-23 12:53:57 +02:00
parent 985bcd6622
commit 5266cbb950

View file

@ -205,6 +205,7 @@ Item
height: UM.Theme.getSize("message_action_button").height
onClicked: {
CuraApplication.getDiscoveredCloudPrintersModel().clear()
Cura.API.account.sync(true)
base.addCloudPrinterButtonClicked()
}
}