1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

Merge pull request #406 from JakeStanger/fix/launcher-focus

fix(launcher): favourites not focused when opened
This commit is contained in:
Jake Stanger 2024-01-13 17:24:02 +00:00 committed by GitHub
commit ec503ade43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,