summaryrefslogtreecommitdiff
path: root/services/Network.qml
diff options
context:
space:
mode:
Diffstat (limited to 'services/Network.qml')
-rw-r--r--services/Network.qml19
1 files changed, 13 insertions, 6 deletions
diff --git a/services/Network.qml b/services/Network.qml
index f3dfc3e..ede37c8 100644
--- a/services/Network.qml
+++ b/services/Network.qml
@@ -309,16 +309,23 @@ Singleton {
return octets.join(".");
}
+ Timer {
+ id: monitorDebounce
+
+ interval: 200
+ onTriggered: {
+ Nmcli.getNetworks(() => {
+ syncNetworksFromNmcli();
+ });
+ getEthernetDevices();
+ }
+ }
+
Process {
running: true
command: ["nmcli", "m"]
stdout: SplitParser {
- onRead: {
- Nmcli.getNetworks(() => {
- syncNetworksFromNmcli();
- });
- getEthernetDevices();
- }
+ onRead: monitorDebounce.start()
}
}
}