refactor(network): only get info when there is an interface

This commit is contained in:
Alexis 2018-11-23 17:46:14 +01:00
parent f6c2a8d9b7
commit 686bc4828e

View File

@ -91,7 +91,9 @@ void waybar::modules::Network::worker()
}
}
if (need_update) {
getInfo();
if (ifid_ > 0) {
getInfo();
}
dp.emit();
}
};