Allow opening the settings from the welcome page
This is required to configure a proxy before logging in
This commit is contained in:
@@ -13,7 +13,7 @@ import org.kde.neochat.config
|
|||||||
FormCard.FormCardPage {
|
FormCard.FormCardPage {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
title: i18nc("@title:window", "General")
|
title: i18nc("@title:window", "Proxy")
|
||||||
|
|
||||||
property int currentType
|
property int currentType
|
||||||
property bool proxyConfigChanged: false
|
property bool proxyConfigChanged: false
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import org.kde.neochat
|
|||||||
KirigamiSettings.CategorizedSettings {
|
KirigamiSettings.CategorizedSettings {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property NeoChatConnection connection
|
property NeoChatConnection connection
|
||||||
|
|
||||||
objectName: "settingsPage"
|
objectName: "settingsPage"
|
||||||
actions: [
|
actions: [
|
||||||
|
|||||||
@@ -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: {
|
Component.onCompleted: {
|
||||||
LoginHelper.init();
|
LoginHelper.init();
|
||||||
module.item.forceActiveFocus();
|
module.item.forceActiveFocus();
|
||||||
|
|||||||
Reference in New Issue
Block a user