Skip to content

Commit

Permalink
fix(launcher): crash when focusing newly opened window in popup
Browse files Browse the repository at this point in the history
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 🎉
  • Loading branch information
JakeStanger committed Jun 18, 2023
1 parent 18b3642 commit 103a224
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/launcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,6 @@ impl Module<gtk::Box> 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();
}
});
}

Expand Down

0 comments on commit 103a224

Please sign in to comment.