controlcenter: fix bug, couldn't select wifi network while ethernet interface was selected
This commit is contained in:
parent
ebc2772b3e
commit
c30022b75e
1 changed files with 9 additions and 7 deletions
|
|
@ -145,6 +145,7 @@ RowLayout {
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
|
root.session.network.active = null;
|
||||||
root.session.ethernet.active = modelData;
|
root.session.ethernet.active = modelData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -276,15 +277,16 @@ RowLayout {
|
||||||
border.width: root.session.network.active === modelData ? 1 : 0
|
border.width: root.session.network.active === modelData ? 1 : 0
|
||||||
border.color: Colours.palette.m3primary
|
border.color: Colours.palette.m3primary
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
root.session.network.active = modelData;
|
root.session.ethernet.active = null;
|
||||||
// Check if we need to refresh saved connections when selecting a network
|
root.session.network.active = modelData;
|
||||||
if (modelData && modelData.ssid) {
|
// Check if we need to refresh saved connections when selecting a network
|
||||||
checkSavedProfileForNetwork(modelData.ssid);
|
if (modelData && modelData.ssid) {
|
||||||
|
checkSavedProfileForNetwork(modelData.ssid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: wirelessRowLayout
|
id: wirelessRowLayout
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue