added onclick to upower

This commit is contained in:
Keloran
2022-11-18 13:09:38 +00:00
parent 833dcc1bb8
commit 00a2ebf00d
3 changed files with 6 additions and 4 deletions

View File

@ -250,10 +250,7 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) {
}
bool UPower::handleToggle(GdkEventButton* const& event) {
std::lock_guard<std::mutex> guard(m_Mutex);
showAltText = !showAltText;
dp.emit();
return true;
return AModule::handleToggle(event);
}
std::string UPower::timeToString(gint64 time) {