mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-10-31 21:51:55 +01:00 
			
		
		
		
	Merge pull request #406 from JakeStanger/fix/launcher-focus
fix(launcher): favourites not focused when opened
This commit is contained in:
		
				commit
				
					
						ec503ade43
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -325,10 +325,11 @@ impl Module<gtk::Box> for LauncherModule { | |||
|             glib_recv!(rx, event => { | ||||
|                 match event { | ||||
|                     LauncherUpdate::AddItem(item) => { | ||||
|                         debug!("Adding item with id {}", item.app_id); | ||||
|                         debug!("Adding item with id '{}' to the bar: {item:?}", item.app_id); | ||||
| 
 | ||||
|                         if let Some(button) = buttons.get(&item.app_id) { | ||||
|                             button.set_open(true); | ||||
|                             button.set_focused(item.open_state.is_focused()); | ||||
|                         } else { | ||||
|                             let button = ItemButton::new( | ||||
|                                 &item, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue