fix(#1707): hide module when no controller found

pull/1748/head
Alex 2022-10-27 09:00:31 +02:00
parent 2d7e21ed7d
commit be28ee3d7e
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ waybar::modules::Bluetooth::Bluetooth(const std::string& id, const Json::Value&
} else {
spdlog::error("findCurController() failed: no bluetooth controller found");
}
event_box_.hide()
return;
}
findConnectedDevices(cur_controller_.path, connected_devices_);