Merge pull request #196 from JakeStanger/fix/launcher-crash
fix(launcher): crash when focusing newly opened window in popup
This commit is contained in:
@@ -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();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user