mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-20 01:42:38 +02:00
refactor(network): only get info when there is an interface
This commit is contained in:
@@ -91,7 +91,9 @@ void waybar::modules::Network::worker()
|
||||
}
|
||||
}
|
||||
if (need_update) {
|
||||
getInfo();
|
||||
if (ifid_ > 0) {
|
||||
getInfo();
|
||||
}
|
||||
dp.emit();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user