From 456e06c4b5827cd42004863d3435b4dd6c65160d Mon Sep 17 00:00:00 2001 From: Keloran Date: Mon, 21 Nov 2022 09:46:57 +0000 Subject: [PATCH] exact opposite, lol --- src/modules/upower/upower.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/upower/upower.cpp b/src/modules/upower/upower.cpp index e9850074..a1df3809 100644 --- a/src/modules/upower/upower.cpp +++ b/src/modules/upower/upower.cpp @@ -250,10 +250,14 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) { } bool UPower::handleToggle(GdkEventButton* const& event) { + bool clickHandled = AModule::handleToggle(event); + if (clickHandled) { + return clickHandled; + } std::lock_guard guard(m_Mutex); showAltText = !showAltText; dp.emit(); - return AModule::handleToggle(event); + return true } std::string UPower::timeToString(gint64 time) {