networks: Remove unneeded network scan

The `update_networks()` function already scans in the beginning.
This commit is contained in:
elenapan 2024-12-18 11:32:16 +02:00
parent 50cad1adc2
commit c5431fb7f0

View file

@ -78,10 +78,9 @@ scan() {
exit 1 exit 1
fi fi
eww update networks-scan-loading=true eww update networks-scan-loading=true
iwctl station $interface scan
for (( i = 0; i < 5; i++ )); do for (( i = 0; i < 5; i++ )); do
sleep 1
update_networks update_networks
sleep 1
done done
eww update networks-scan-loading=false eww update networks-scan-loading=false
} }