fix(launcher): opening new instances when focused/urgent
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user