Merge pull request #196 from JakeStanger/fix/launcher-crash

fix(launcher): crash when focusing newly opened window in popup
This commit is contained in:
Jake Stanger 2023-06-18 16:33:04 +01:00 committed by GitHub
commit c8c84446d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,10 +468,6 @@ impl Module<gtk::Box> for LauncherModule {
let tx = controller_tx.clone(); let tx = controller_tx.clone();
button.connect_clicked(move |button| { button.connect_clicked(move |button| {
try_send!(tx, ItemEvent::FocusWindow(win.id)); try_send!(tx, ItemEvent::FocusWindow(win.id));
if let Some(win) = button.window() {
win.hide();
}
}); });
} }