Commit 96832e15 authored by Martin Kacej's avatar Martin Kacej

fixed possible connecting of unavailable connection

parent 2453d613
......@@ -108,7 +108,7 @@ Kirigami.SwipeListItem {
actions: [
Kirigami.Action {
iconName: "network-connect"
visible: ConnectionState != PlasmaNM.Enums.Activated
visible: ConnectionState != PlasmaNM.Enums.Activated && Signal > 0
onTriggered: changeState()
},
Kirigami.Action {
......@@ -135,6 +135,8 @@ Kirigami.SwipeListItem {
}
function changeState() {
if (Signal === 0)
return
if (Uuid || !predictableWirelessPassword || connectionPasswordField.visible) {
if (ConnectionState == PlasmaNM.Enums.Deactivated) {
if (!predictableWirelessPassword && !Uuid) {
......
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