mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 03:02:28 +03:00
fix(core): run setup after preparing system tray (#2312)
* fix(core): run setup after preparing system tray * change file [skip ci]
This commit is contained in:
parent
05e679a6d2
commit
1792c45592
5
.changes/setup-fix.md
Normal file
5
.changes/setup-fix.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Run the setup callback after preparing the system tray.
|
@ -822,8 +822,6 @@ impl<R: Runtime> Builder<R> {
|
||||
}
|
||||
}
|
||||
|
||||
(self.setup)(&mut app).map_err(|e| crate::Error::Setup(e))?;
|
||||
|
||||
#[cfg(feature = "system-tray")]
|
||||
if let Some(system_tray) = self.system_tray {
|
||||
let mut ids = HashMap::new();
|
||||
@ -894,6 +892,8 @@ impl<R: Runtime> Builder<R> {
|
||||
}
|
||||
}
|
||||
|
||||
(self.setup)(&mut app).map_err(|e| crate::Error::Setup(e))?;
|
||||
|
||||
#[cfg(feature = "updater")]
|
||||
app.run_updater(main_window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user