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

fix(launcher): favourites not focused when opened

Fixes #225
This commit is contained in:
Jake Stanger 2024-01-13 17:15:19 +00:00
parent 3dc198ee41
commit b004d5007c
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

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,