Merge pull request #1799 from Keloran/upower-click
commit
d2b4076ac8
|
@ -47,6 +47,10 @@ compatible devices in the tooltip.
|
||||||
default: 4 ++
|
default: 4 ++
|
||||||
Defines the spacing between the tooltip window edge and the tooltip content.
|
Defines the spacing between the tooltip window edge and the tooltip content.
|
||||||
|
|
||||||
|
*on-click*: ++
|
||||||
|
typeof: string ++
|
||||||
|
Command to execute when clicked on the module.
|
||||||
|
|
||||||
# FORMAT REPLACEMENTS
|
# FORMAT REPLACEMENTS
|
||||||
|
|
||||||
*{percentage}*: The battery capacity in percentage
|
*{percentage}*: The battery capacity in percentage
|
||||||
|
|
|
@ -252,8 +252,7 @@ const std::string UPower::getDeviceStatus(UpDeviceState& state) {
|
||||||
bool UPower::handleToggle(GdkEventButton* const& event) {
|
bool UPower::handleToggle(GdkEventButton* const& event) {
|
||||||
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