fix(#1707): hide module when no controller found
This commit is contained in:
parent
2d7e21ed7d
commit
be28ee3d7e
|
@ -101,6 +101,7 @@ waybar::modules::Bluetooth::Bluetooth(const std::string& id, const Json::Value&
|
||||||
} else {
|
} else {
|
||||||
spdlog::error("findCurController() failed: no bluetooth controller found");
|
spdlog::error("findCurController() failed: no bluetooth controller found");
|
||||||
}
|
}
|
||||||
|
event_box_.hide()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
findConnectedDevices(cur_controller_.path, connected_devices_);
|
findConnectedDevices(cur_controller_.path, connected_devices_);
|
||||||
|
|
Loading…
Reference in New Issue