Allow opening the settings from the welcome page

This is required to configure a proxy before logging in
This commit is contained in:
Tobias Fella
2024-03-08 14:02:50 +01:00
parent b488b55a71
commit 5ccce364d3
3 changed files with 13 additions and 2 deletions

View File

@@ -211,6 +211,17 @@ FormCard.FormCardPage {
}
}
FormCard.FormCard {
Layout.topMargin: Kirigami.Units.largeSpacing
FormCard.FormButtonDelegate {
text: i18nc("@action:button", "Open proxy settings")
icon.name: "settings-configure"
onClicked: pageStack.pushDialogLayer(Qt.createComponent("org.kde.neochat", "NetworkProxyPage.qml"), {}, {
title: i18nc("@title:window", "Proxy Settings")
});
}
}
Component.onCompleted: {
LoginHelper.init();
module.item.forceActiveFocus();