Skip to content

Commit

Permalink
Merge pull request #14 from akaWolf/master
Browse files Browse the repository at this point in the history
[Wi-Fi] fix connect/disconnect
  • Loading branch information
neochapay committed Dec 4, 2018
2 parents 0ac46f2 + 2966fbc commit c6ddfc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions qml/plugins/wifi/WifiSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,22 @@ Page {
networkingModel.networkName.text = modelData.name;
}

SettingsColumn{
TextField{
SettingsColumn {
TextField {
id: passphrase
text: modelData.passphrase
}

Button{
Button {
id: connectButton
height: 48

onClicked: {
modelData.passphrase = passphrase.text;
modelData.requestConnect();
pageStack.pop();
}

text: qsTr("Connect")
}
}
Expand Down
2 changes: 1 addition & 1 deletion qml/plugins/wifi/wifi.qml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Page {
verticalCenter: nameLabel.verticalCenter
}
onClicked:{
networkingModel.setPowered(columnCheckBox.checked)
networkingModel.powered = !networkingModel.powered;
}
}
}
Expand Down

0 comments on commit c6ddfc4

Please sign in to comment.