mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Added clock tooltip with optional alternate format
This commit is contained in:
@ -109,8 +109,7 @@ std::string waybar::ALabel::getIcon(uint16_t percentage, const std::string& alt)
|
||||
|
||||
bool waybar::ALabel::tooltipEnabled()
|
||||
{
|
||||
return !config_["tooltip"].isBool() ||
|
||||
(config_["tooltip"].isBool() && config_["tooltip"].asBool());
|
||||
return config_["tooltip"].isBool() ? config_["tooltip"].asBool() : true;
|
||||
}
|
||||
|
||||
waybar::ALabel::operator Gtk::Widget&() { return event_box_; }
|
||||
|
Reference in New Issue
Block a user