diff --git a/app/tauri/src/desktop/commands.rs b/app/tauri/src/desktop/commands.rs index 4344448e..706dae66 100644 --- a/app/tauri/src/desktop/commands.rs +++ b/app/tauri/src/desktop/commands.rs @@ -8,8 +8,8 @@ use tauri::{Builder, PhysicalSize, Runtime, Wry}; #[non_exhaustive] struct WindowSize; -use crate::system_tray; -use crate::updater; +use crate::desktop::system_tray; +use crate::desktop::updater; impl WindowSize { diff --git a/app/tauri/src/lib.rs b/app/tauri/src/lib.rs index 7a0ad8a1..f0f576c7 100644 --- a/app/tauri/src/lib.rs +++ b/app/tauri/src/lib.rs @@ -37,15 +37,13 @@ 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!()) .expect("error while running tauri application");