WWW update
[ubi] / qml / ubi / InitPage.qml
index 554cd02..d912d0e 100644 (file)
@@ -29,12 +29,14 @@ Showable {
     }
 
     function onErr(status) {
-        hide()
         if(status==401) {
+            hide()
             tip.show(qsTr("Ubuntu One authorization has failed. Try once again or check login settings."));
         } else if(status==0) {
-            tip.show(qsTr("Unable to connect. Check internet connection."));
+            hide()
+            tip.show(qsTr("Unable to connect. Check internet connection and restart application."));
         } else {
+            hide()
             tip.show(qsTr("Unknown error: ")+status);
         }
     }
@@ -70,11 +72,19 @@ Showable {
             }
 
             BusyIndicator {
+                id: busy
                 anchors.horizontalCenter: parent.horizontalCenter
                 running: true
             }
         }
 
+        Button {
+            id: close
+            iconSource: "images/close.png"
+            anchors { right: parent.right; top: parent.top; margins: Const.DEFAULT_MARGIN }
+            onButtonClicked: Qt.quit()
+        }
+
         Text {
             anchors.bottom: ver.top
             anchors.horizontalCenter: parent.horizontalCenter