Skip to content

Commit

Permalink
Merge pull request #406 from JakeStanger/fix/launcher-focus
Browse files Browse the repository at this point in the history
fix(launcher): favourites not focused when opened
  • Loading branch information
JakeStanger authored Jan 13, 2024
2 parents 3dc198e + b004d50 commit ec503ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/launcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ec503ad

Please sign in to comment.