1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 11:11:04 +02:00

fix: sometimes panicking on startup

This commit is contained in:
Jake Stanger 2022-10-15 18:01:09 +01:00
parent 75339f07ed
commit b7b64886e3
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 11 additions and 3 deletions

View file

@ -352,6 +352,8 @@ impl Module<gtk::Box> for LauncherModule {
}
LauncherUpdate::AddWindow(app_id, _) => {
if let Some(button) = buttons.get(&app_id) {
button.set_open(true);
let mut menu_state = button
.menu_state
.write()