Skip to content

Commit

Permalink
chore: run rustftm
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Nov 13, 2023
1 parent 5c67302 commit 9db436b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
28 changes: 15 additions & 13 deletions app/tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@


#[cfg(debug_assertions)]
use tauri::{Manager};
use tauri::{RunEvent};
use tauri::Manager;
use tauri::RunEvent;
#[cfg(desktop)]
use tauri_plugin_autostart::MacosLauncher;
#[cfg(desktop)]
Expand All @@ -26,7 +24,11 @@ pub fn run() {
let builder = tauri::Builder::default();

#[cfg(desktop)]
let builder = builder.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, None))
let builder = builder
.plugin(tauri_plugin_autostart::init(
MacosLauncher::LaunchAgent,
None,
))
.plugin(tauri_plugin_window::init())
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_updater::Builder::new().build());
Expand All @@ -37,15 +39,15 @@ pub fn run() {
let builder = builder.register_pomatez_commands();

#[cfg(desktop)]
let builder = builder
.setup(|app| {
app.setup_global_shortcuts();
app.set_pomatez_system_tray();
let builder = builder.setup(|app| {
app.setup_global_shortcuts();
app.set_pomatez_system_tray();

Ok(())
});
Ok(())
});

let app = builder.build(tauri::generate_context!())
let app = builder
.build(tauri::generate_context!())
.expect("error while running tauri application");

#[allow(unused_variables)]
Expand All @@ -61,4 +63,4 @@ pub fn run() {
}
_ => {}
});
}
}
6 changes: 3 additions & 3 deletions app/tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]

fn main() {
pomatez_lib::run()
}
}

0 comments on commit 9db436b

Please sign in to comment.