diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-19 22:18:10 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-19 22:18:10 -0500 |
| commit | bf3a1781d12271a7edb9ead26eb59740f87877fd (patch) | |
| tree | 9e4291b5386cdf4905e1c60970e08d7cf85ac9c1 /modules/controlcenter/network | |
| parent | refactor: replaced input fields with SliderInput components (diff) | |
| download | caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.gz caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.tar.bz2 caelestia-shell-bf3a1781d12271a7edb9ead26eb59740f87877fd.zip | |
refactor: reorganized AppearancePane sections into dedicated components
Diffstat (limited to 'modules/controlcenter/network')
| -rw-r--r-- | modules/controlcenter/network/NetworkingPane.qml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/controlcenter/network/NetworkingPane.qml b/modules/controlcenter/network/NetworkingPane.qml index 4446428..b430cce 100644 --- a/modules/controlcenter/network/NetworkingPane.qml +++ b/modules/controlcenter/network/NetworkingPane.qml @@ -175,16 +175,26 @@ Item { Connections { target: root.session.ethernet function onActiveChanged() { + // Clear wireless when ethernet is selected + if (root.session.ethernet.active && root.session.network.active) { + root.session.network.active = null; + return; // Let the network.onActiveChanged handle the update + } rightPaneItem.nextComponent = rightPaneItem.getComponentForPane(); - rightPaneItem.paneId = rightPaneItem.ethernetPane ? ("eth:" + (rightPaneItem.ethernetPane.interface || "")) : (rightPaneItem.wirelessPane ? ("wifi:" + (rightPaneItem.wirelessPane.ssid || rightPaneItem.wirelessPane.bssid || "")) : "settings"); + // paneId will automatically update via property binding } } Connections { target: root.session.network function onActiveChanged() { + // Clear ethernet when wireless is selected + if (root.session.network.active && root.session.ethernet.active) { + root.session.ethernet.active = null; + return; // Let the ethernet.onActiveChanged handle the update + } rightPaneItem.nextComponent = rightPaneItem.getComponentForPane(); - rightPaneItem.paneId = rightPaneItem.ethernetPane ? ("eth:" + (rightPaneItem.ethernetPane.interface || "")) : (rightPaneItem.wirelessPane ? ("wifi:" + (rightPaneItem.wirelessPane.ssid || rightPaneItem.wirelessPane.bssid || "")) : "settings"); + // paneId will automatically update via property binding } } |