Skip to content

Commit

Permalink
fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Aug 3, 2023
1 parent 0234a20 commit 6b99f3c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/tauri/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1538,13 +1538,8 @@ impl<R: Runtime> Builder<R> {
if let Some(tooltip) = &tray_config.tooltip {
tray = tray.tooltip(tooltip);
}
app
.manager
.inner
.tray_icons
.lock()
.unwrap()
.push(tray.build(&handle)?);
let tray = tray.build(&handle)?;
app.manager.inner.tray_icons.lock().unwrap().push(tray);
}

app.manager.initialize_plugins(&handle)?;
Expand Down

0 comments on commit 6b99f3c

Please sign in to comment.