mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(network): only get info when there is an interface
This commit is contained in:
parent
f6c2a8d9b7
commit
686bc4828e
@ -91,7 +91,9 @@ void waybar::modules::Network::worker()
|
||||
}
|
||||
}
|
||||
if (need_update) {
|
||||
getInfo();
|
||||
if (ifid_ > 0) {
|
||||
getInfo();
|
||||
}
|
||||
dp.emit();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user