Commit b83e86d8 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[mobile/wifi] Remove broken confirmation dialog when forgetting a connection

Summary: The confirmation is broken and doesn't appear at all. IMHO it isn't really necessary, so let's remove it.

Test Plan: Deleted a connection

Reviewers: #plasma, jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24897
parent e6acc0d4
......@@ -117,7 +117,7 @@ Kirigami.SwipeListItem {
Kirigami.Action {
iconName: "entry-delete"
visible: (Uuid != "")? true : false
onTriggered: forgetNetwork()
onTriggered: handler.removeConnection(ConnectionPath)
}
]
......@@ -149,10 +149,4 @@ Kirigami.SwipeListItem {
connectionPasswordField.visible = true;
}
}
function forgetNetwork() {
deleteConnectionDialog.name = ItemUniqueName
deleteConnectionDialog.dbusPath = ConnectionPath
deleteConnectionDialog.open()
}
}
......@@ -160,40 +160,4 @@ SimpleKCM {
}
}
*/
Kirigami.OverlayDrawer {
id: deleteConnectionDialog
property var name
property var dbusPath
edge: Qt.BottomEdge
contentItem: Column {
anchors.centerIn: parent
spacing: Kirigami.Units.largeSpacing
bottomPadding: Kirigami.Units.largeSpacing
Controls.Label {
anchors.horizontalCenter: parent.horizontalCenter
text: i18n("Delete connection %1 from device?", deleteConnectionDialog.name)
}
Controls.Button {
text: i18n("Delete")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
handler.removeConnection(deleteConnectionDialog.dbusPath)
deleteConnectionDialog.close()
}
}
Controls.Button {
text: i18n("Cancel")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: deleteConnectionDialog.close()
}
}
onVisibleChanged: {
if (!visible) {
deleteConnectionDialog.name = ""
deleteConnectionDialog.dbusPath = ""
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment