summaryrefslogtreecommitdiff
path: root/qml/pages/Board.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/pages/Board.qml')
-rw-r--r--qml/pages/Board.qml12
1 files changed, 10 insertions, 2 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");
}