Add the possibility to disable the tooltip
This commit is contained in:
		
							parent
							
								
									d708ce2be9
								
							
						
					
					
						commit
						c2ed0cb832
					
				| 
						 | 
				
			
			@ -27,8 +27,10 @@ auto waybar::modules::IdleInhibitor::update() -> void
 | 
			
		|||
  label_.set_markup(
 | 
			
		||||
      fmt::format(format_, fmt::arg("status", status_),
 | 
			
		||||
                  fmt::arg("icon", getIcon(0, status_))));
 | 
			
		||||
  if(tooltipEnabled()) {
 | 
			
		||||
    label_.set_tooltip_text(status_);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool waybar::modules::IdleInhibitor::onClick(GdkEventButton* const& e)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue