Allow customizing the connection for the logout confirm dialog
This commit is contained in:
@@ -11,6 +11,8 @@ import org.kde.neochat 1.0
|
|||||||
QQC2.Dialog {
|
QQC2.Dialog {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
property var connection
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Kirigami.Heading {
|
Kirigami.Heading {
|
||||||
text: i18n("Sign out")
|
text: i18n("Sign out")
|
||||||
@@ -35,7 +37,7 @@ QQC2.Dialog {
|
|||||||
text: i18n("Sign out")
|
text: i18n("Sign out")
|
||||||
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
|
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Controller.logout(Controller.activeConnection, true);
|
Controller.logout(root.connection, true);
|
||||||
root.close();
|
root.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user