Skip to content

Commit

Permalink
split system settings into its own tab again
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Aug 27, 2022
1 parent 659c5d4 commit f07840c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/qml/CSLOLDialogSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,15 @@ Dialog {

TabButton {
text: qsTr("Game")
width: settingsStackLayout.width / 2
width: settingsStackLayout.width / 3
}
TabButton {
text: qsTr("System")
width: settingsStackLayout.width / 3
}
TabButton {
text: qsTr("Theme")
width: settingsStackLayout.width / 2
width: settingsStackLayout.width / 3
}
}

Expand Down Expand Up @@ -103,6 +107,20 @@ Dialog {
checked: false
Layout.fillWidth: true
}
}
ColumnLayout {
id: settingsSystemTab
spacing: 5
Button {
text: qsTr("Logs")
onClicked: Qt.openUrlExternally(CSLOLUtils.toFile("./log.txt"))
Layout.fillWidth: true
}
Button {
text: qsTr("Updates")
onClicked: Qt.openUrlExternally(cslolDialogUpdate.update_url)
Layout.fillWidth: true
}
Switch {
id: disableUpdatesCheck
text: qsTr("Disable updates")
Expand Down
4 changes: 4 additions & 0 deletions src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ ApplicationWindow {
}
}
}
MenuItem {
text: qsTr("Logs")
onTriggered: Qt.openUrlExternally(CSLOLUtils.toFile("./log.txt"))
}
MenuItem {
text: qsTr("Updates")
onTriggered: Qt.openUrlExternally(cslolDialogUpdate.update_url)
Expand Down

0 comments on commit f07840c

Please sign in to comment.