refactor(network): only get info when there is an interface
parent
f6c2a8d9b7
commit
686bc4828e
|
@ -91,7 +91,9 @@ void waybar::modules::Network::worker()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (need_update) {
|
if (need_update) {
|
||||||
getInfo();
|
if (ifid_ > 0) {
|
||||||
|
getInfo();
|
||||||
|
}
|
||||||
dp.emit();
|
dp.emit();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue