Skip to content

Commit

Permalink
fix: move plugin init
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 26, 2024
1 parent def11b5 commit cc4bb51
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,20 @@ fn main() {
#[allow(unused_mut)]
let mut builder = tauri::Builder::default()
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_shell::init());
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_autostart::init(
tauri_plugin_autostart::MacosLauncher::LaunchAgent,
Some(vec!["--startup"]),
))
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_window_state::Builder::new().build());

#[cfg(not(target_os = "windows"))]
{
builder = builder.plugin(tauri_plugin_notification::init());
}

builder.plugin(tauri_plugin_autostart::init(
tauri_plugin_autostart::MacosLauncher::LaunchAgent,
Some(vec!["--startup"]),
))
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_window_state::Builder::new().build())
.invoke_handler(tauri::generate_handler![
builder.invoke_handler(tauri::generate_handler![
should_disable_plugins,
git_hash,
functionality::window::minimize,
Expand Down

0 comments on commit cc4bb51

Please sign in to comment.