mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
fix: upower hidded on start
This commit is contained in:
@ -289,7 +289,12 @@ auto UPower::update() -> void {
|
|||||||
std::lock_guard<std::mutex> guard(m_Mutex);
|
std::lock_guard<std::mutex> guard(m_Mutex);
|
||||||
|
|
||||||
// Don't update widget if the UPower service isn't running
|
// Don't update widget if the UPower service isn't running
|
||||||
if (!upowerRunning) return;
|
if (!upowerRunning) {
|
||||||
|
if (hideIfEmpty) {
|
||||||
|
event_box_.set_visible(false);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
UpDeviceKind kind;
|
UpDeviceKind kind;
|
||||||
UpDeviceState state;
|
UpDeviceState state;
|
||||||
|
Reference in New Issue
Block a user