We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e679a commit 1792c45Copy full SHA for 1792c45
2 files changed
.changes/setup-fix.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Run the setup callback after preparing the system tray.
core/tauri/src/app.rs
@@ -822,8 +822,6 @@ impl<R: Runtime> Builder<R> {
822
}
823
824
825
- (self.setup)(&mut app).map_err(|e| crate::Error::Setup(e))?;
826
-
827
#[cfg(feature = "system-tray")]
828
if let Some(system_tray) = self.system_tray {
829
let mut ids = HashMap::new();
@@ -894,6 +892,8 @@ impl<R: Runtime> Builder<R> {
894
892
895
893
896
+ (self.setup)(&mut app).map_err(|e| crate::Error::Setup(e))?;
897
#[cfg(feature = "updater")]
898
app.run_updater(main_window);
899
0 commit comments