mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Add config option "reverse-direction"
This commit is contained in:
		@@ -25,7 +25,11 @@ Tray::Tray(const std::string& id, const Bar& bar, const Json::Value& config)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Tray::onAdd(std::unique_ptr<Item>& item) {
 | 
			
		||||
  box_.pack_end(item->event_box);
 | 
			
		||||
  if (config_["reverse-direction"].isBool() && config_["reverse-direction"].asBool()) {
 | 
			
		||||
    box_.pack_end(item->event_box);
 | 
			
		||||
  } else {
 | 
			
		||||
    box_.pack_start(item->event_box);
 | 
			
		||||
  }
 | 
			
		||||
  dp.emit();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user