From be28ee3d7ec34d86265280f9fd82d5e984aeeb3c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Oct 2022 09:00:31 +0200 Subject: [PATCH] fix(#1707): hide module when no controller found --- src/modules/bluetooth.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/bluetooth.cpp b/src/modules/bluetooth.cpp index 6ceab78..3a24b0d 100644 --- a/src/modules/bluetooth.cpp +++ b/src/modules/bluetooth.cpp @@ -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_);