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