summaryrefslogtreecommitdiff
path: root/modules/controlcenter/ethernet/EthernetList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/ethernet/EthernetList.qml')
-rw-r--r--modules/controlcenter/ethernet/EthernetList.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/controlcenter/ethernet/EthernetList.qml b/modules/controlcenter/ethernet/EthernetList.qml
index d239fc6..6ed50fd 100644
--- a/modules/controlcenter/ethernet/EthernetList.qml
+++ b/modules/controlcenter/ethernet/EthernetList.qml
@@ -144,8 +144,9 @@ ColumnLayout {
function onClicked(): void {
if (modelData.connected && modelData.connection) {
Network.disconnectEthernet(modelData.connection);
- } else if (modelData.connection) {
- Network.connectEthernet(modelData.connection);
+ } else {
+ // Use connection name if available, otherwise use interface
+ Network.connectEthernet(modelData.connection || "", modelData.interface || "");
}
}
}