Browse Source

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.
Konstantinos Karmas 3 years ago
parent
commit
5266cbb950
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml

+ 1 - 0
resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml

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