aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/user
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 11:19:44 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 11:19:44 +0200
commit2bde0952fd03d09d5ef8b1c2dcf39aa77e8762b8 (patch)
tree5ee6120942e8fed1ad08a83ca9f2c10605e469eb /desktop/modules/user
parent80c9d85f2bc45ce8991c4fb17cbb2739bbdcdad0 (diff)
downloadquickshell-2bde0952fd03d09d5ef8b1c2dcf39aa77e8762b8.tar.gz
quickshell-2bde0952fd03d09d5ef8b1c2dcf39aa77e8762b8.zip
feat(user): open the git config page from the Git section
A "More git settings" button under the Git fields. The page emits moreGit and the module turns it into Page.go("git"), since the page itself has no reach into the drawer. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/user')
-rw-r--r--desktop/modules/user/UserModule.qml3
-rw-r--r--desktop/modules/user/UserPage.qml9
2 files changed, 11 insertions, 1 deletions
diff --git a/desktop/modules/user/UserModule.qml b/desktop/modules/user/UserModule.qml
index 9e5210c..f292bda 100644
--- a/desktop/modules/user/UserModule.qml
+++ b/desktop/modules/user/UserModule.qml
@@ -23,8 +23,9 @@ Module {
page: Component {
Page {
+ id: pg
title: "User"
- UserPage { width: parent.width; owner: um }
+ UserPage { width: parent.width; owner: um; onMoreGit: pg.go("git") }
}
}
}
diff --git a/desktop/modules/user/UserPage.qml b/desktop/modules/user/UserPage.qml
index 4693801..f7a2289 100644
--- a/desktop/modules/user/UserPage.qml
+++ b/desktop/modules/user/UserPage.qml
@@ -56,6 +56,9 @@ Column {
// The module, which outlives the page: a save in flight finishes even if
// the page is closed. Not named `um`, the module's id (it would bind to itself).
required property QtObject owner
+ // The "More git settings" button. The page has no reach into the drawer;
+ // UserModule turns this into Page.go("git").
+ signal moreGit
property string loadError: ""
readonly property var changed: Object.keys(draft).filter(k => draft[k] !== saved[k] || !!errors[k])
@@ -401,6 +404,12 @@ Column {
}
}
+ // Every other global git key, on its own page.
+ Button {
+ text: "More git settings"
+ onClicked: form.moreGit()
+ }
+
Button {
anchors.right: parent.right
text: form.busy ? "Saving…" : "Save"