From 103a224355e8f700904a2b8fbc87cd7be4f64566 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sun, 18 Jun 2023 16:21:35 +0100 Subject: [PATCH] fix(launcher): crash when focusing newly opened window in popup Attempting to focus a newly opened window from the launcher popup attempted to close the popup directly in an invalid manner, which caused the bar to hard crash. The controller already handles this correctly, so removed this code. Resolves #41 :tada: --- src/modules/launcher/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/launcher/mod.rs b/src/modules/launcher/mod.rs index 39519b3..5a18818 100644 --- a/src/modules/launcher/mod.rs +++ b/src/modules/launcher/mod.rs @@ -468,10 +468,6 @@ impl Module for LauncherModule { let tx = controller_tx.clone(); button.connect_clicked(move |button| { try_send!(tx, ItemEvent::FocusWindow(win.id)); - - if let Some(win) = button.window() { - win.hide(); - } }); }