Update upower.cpp

This commit is contained in:
Alex 2022-11-25 09:03:27 +01:00 committed by GitHub
parent 3acd31c3e9
commit e63e3a0ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,14 +250,9 @@ 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<std::mutex> guard(m_Mutex);
showAltText = !showAltText;
dp.emit();
return true;
return AModule::handleToggle(event);
}
std::string UPower::timeToString(gint64 time) {