Qml/Main: move add mod action to global drawer

This commit is contained in:
Toast 2025-06-05 21:33:23 +02:00 committed by Toast
parent 0ad0b3e605
commit b0cebe12a0

View file

@ -11,6 +11,12 @@ Kirigami.ApplicationWindow {
globalDrawer: Kirigami.GlobalDrawer { globalDrawer: Kirigami.GlobalDrawer {
actions: [ actions: [
Kirigami.Action {
// download-symbolic and install-symbolic are the same icon
// but install looks worse for some reason
icon.name: "download-symbolic"
text: "Add mod"
},
Kirigami.Action { Kirigami.Action {
text: "Quit" text: "Quit"
icon.name: "application-exit-symbolic" icon.name: "application-exit-symbolic"
@ -25,15 +31,6 @@ Kirigami.ApplicationWindow {
pageStack.initialPage: Kirigami.ScrollablePage { pageStack.initialPage: Kirigami.ScrollablePage {
title: "Mods" title: "Mods"
actions: [
Kirigami.Action {
// download-symbolic and install-symbolic are the same icon
// but install looks worse for some reason
icon.name: "download-symbolic"
text: "Add mod"
}
]
Kirigami.CardsListView { Kirigami.CardsListView {
id: modsView id: modsView