mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 02:31:04 +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 |_| {
|
button.connect_clicked(move |_| {
|
||||||
let state = state.read().expect("Failed to get read lock on state");
|
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");
|
focus_tx.try_send(()).expect("Failed to send focus event");
|
||||||
} else {
|
} else {
|
||||||
// attempt to find desktop file and launch
|
// attempt to find desktop file and launch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue