mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Update upower.cpp
This commit is contained in:
parent
3acd31c3e9
commit
e63e3a0ca9
@ -250,14 +250,9 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool UPower::handleToggle(GdkEventButton* const& event) {
|
bool UPower::handleToggle(GdkEventButton* const& event) {
|
||||||
bool clickHandled = AModule::handleToggle(event);
|
|
||||||
if (clickHandled) {
|
|
||||||
return clickHandled;
|
|
||||||
}
|
|
||||||
std::lock_guard<std::mutex> guard(m_Mutex);
|
std::lock_guard<std::mutex> guard(m_Mutex);
|
||||||
showAltText = !showAltText;
|
showAltText = !showAltText;
|
||||||
dp.emit();
|
return AModule::handleToggle(event);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UPower::timeToString(gint64 time) {
|
std::string UPower::timeToString(gint64 time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user