summaryrefslogtreecommitdiff
path: root/qml/harbour-sailchess.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/harbour-sailchess.qml')
-rw-r--r--qml/harbour-sailchess.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/qml/harbour-sailchess.qml b/qml/harbour-sailchess.qml
index ddc0046..6142693 100644
--- a/qml/harbour-sailchess.qml
+++ b/qml/harbour-sailchess.qml
@@ -1,10 +1,17 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
+import org.nemomobile.configuration 1.0
import "pages"
ApplicationWindow
{
- initialPage: Component { Board { } }
+ initialPage: Qt.resolvedUrl(access_token.value === "" ? "pages/Login.qml" : "pages/Board.qml")
cover: Qt.resolvedUrl("cover/CoverPage.qml")
allowedOrientations: Orientation.Portrait
+
+ ConfigurationValue {
+ id: access_token
+ key: "/com/sailchess/access_token"
+ defaultValue: ""
+ }
}