diff options
Diffstat (limited to 'qml/pages')
-rw-r--r-- | qml/pages/Board.qml | 12 | ||||
-rw-r--r-- | qml/pages/Login.qml | 3 |
2 files changed, 12 insertions, 3 deletions
diff --git a/qml/pages/Board.qml b/qml/pages/Board.qml index 799f24c..bbf41c3 100644 --- a/qml/pages/Board.qml +++ b/qml/pages/Board.qml @@ -17,7 +17,7 @@ Page { PullDownMenu { MenuItem { - text: qsTr("Login") + text: qsTr("Refresh login") onClicked: { access_token.value = ""; refresh_token.value = ""; @@ -26,11 +26,18 @@ Page { } MenuItem { text: qsTr("Random player") + visible: functions.game_id === "" ? true : false onClicked: functions.start_seek() } MenuItem { text: qsTr("Play against bot") - onClicked: functions.challenge("GodelEscherBot") + visible: functions.game_id === "" ? true : false + onClicked: functions.challenge("GarboBot") + } + MenuItem { + text: qsTr("Abort game") + visible: functions.game_id === "" ? false : true + onClicked: functions.abort() } } @@ -49,6 +56,7 @@ Page { id: information anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: grid.top + bottomPadding: Theme.paddingMedium text: qsTr("Please start a game"); } diff --git a/qml/pages/Login.qml b/qml/pages/Login.qml index 2f57e39..e493f2f 100644 --- a/qml/pages/Login.qml +++ b/qml/pages/Login.qml @@ -9,8 +9,9 @@ Page { id: login anchors.fill: parent - experimental.preferences.javascriptEnabled: false + experimental.preferences.javascriptEnabled: true experimental.userStyleSheets: [Qt.resolvedUrl("qrc:///css/external.css")] + // experimental.preferences.privateBrowsingEnabled: true experimental.customLayoutWidth: parent.width / device_ratio url: "https://marvinborner.de/lichess/" |