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 { StateLayer {
function onClicked(): void { function onClicked(): void {
root.session.network.active = null;
root.session.ethernet.active = modelData; root.session.ethernet.active = modelData;
} }
} }
@ -278,6 +279,7 @@ RowLayout {
StateLayer { StateLayer {
function onClicked(): void { function onClicked(): void {
root.session.ethernet.active = null;
root.session.network.active = modelData; root.session.network.active = modelData;
// Check if we need to refresh saved connections when selecting a network // Check if we need to refresh saved connections when selecting a network
if (modelData && modelData.ssid) { if (modelData && modelData.ssid) {