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

fix(launcher): opening new instances when focused/urgent

This commit is contained in:
Jake Stanger 2022-08-25 22:08:08 +01:00
parent 5d319e91f2
commit b81927e3a5
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -163,7 +163,7 @@ impl LauncherItem {
button.connect_clicked(move |_| {
let state = state.read().expect("Failed to get read lock on state");
if state.open_state == OpenState::Open {
if state.open_state != OpenState::Closed {
focus_tx.try_send(()).expect("Failed to send focus event");
} else {
// attempt to find desktop file and launch