From 2bde0952fd03d09d5ef8b1c2dcf39aa77e8762b8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 16 Oct 2026 11:19:44 +0200 Subject: 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 --- desktop/modules/user/UserModule.qml | 3 ++- desktop/modules/user/UserPage.qml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'desktop') 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" -- cgit v1.2.3