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:
parent
5d319e91f2
commit
b81927e3a5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue