mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02: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 => {
|
glib_recv!(rx, event => {
|
||||||
match event {
|
match event {
|
||||||
LauncherUpdate::AddItem(item) => {
|
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) {
|
if let Some(button) = buttons.get(&item.app_id) {
|
||||||
button.set_open(true);
|
button.set_open(true);
|
||||||
|
button.set_focused(item.open_state.is_focused());
|
||||||
} else {
|
} else {
|
||||||
let button = ItemButton::new(
|
let button = ItemButton::new(
|
||||||
&item,
|
&item,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue