controlcenter: fix bug, couldn't select wifi network while ethernet interface was selected

This commit is contained in:
ATMDA 2025-11-14 13:48:32 -05:00
parent ebc2772b3e
commit c30022b75e

View file

@ -145,6 +145,7 @@ RowLayout {
StateLayer {
function onClicked(): void {
root.session.network.active = null;
root.session.ethernet.active = modelData;
}
}
@ -276,15 +277,16 @@ RowLayout {
border.width: root.session.network.active === modelData ? 1 : 0
border.color: Colours.palette.m3primary
StateLayer {
function onClicked(): void {
root.session.network.active = modelData;
// Check if we need to refresh saved connections when selecting a network
if (modelData && modelData.ssid) {
checkSavedProfileForNetwork(modelData.ssid);
StateLayer {
function onClicked(): void {
root.session.ethernet.active = null;
root.session.network.active = modelData;
// Check if we need to refresh saved connections when selecting a network
if (modelData && modelData.ssid) {
checkSavedProfileForNetwork(modelData.ssid);
}
}
}
}
RowLayout {
id: wirelessRowLayout