From a64c3360d22281ae5b36dc3779101b39ea98d708 Mon Sep 17 00:00:00 2001 From: didirus4 Date: Tue, 8 Jul 2025 03:08:27 +0300 Subject: [PATCH] refactor: remove unnecessary code lines --- apps/app/src/main.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/apps/app/src/main.rs b/apps/app/src/main.rs index 2e02776c4..dc3ee39e8 100644 --- a/apps/app/src/main.rs +++ b/apps/app/src/main.rs @@ -34,9 +34,6 @@ async fn initialize_state(app: tauri::AppHandle) -> api::Result<()> { // let update_fut = updater.check(); - // tracing::info!("Initializing app state..."); - State::init().await?; - // let check_bar = theseus::init_loading( // theseus::LoadingBarType::CheckingForUpdates, // 1.0, @@ -87,7 +84,7 @@ async fn initialize_state(app: tauri::AppHandle) -> api::Result<()> { // #[cfg(not(feature = "updater"))] // { // } - + tracing::info!("Initializing app state..."); State::init().await?; tracing::info!("AstralRinth state successfully initialized."); let state = State::get().await?; @@ -164,10 +161,10 @@ fn main() { let mut builder = tauri::Builder::default(); - #[cfg(feature = "updater")] - { - builder = builder.plugin(tauri_plugin_updater::Builder::new().build()); - } + // #[cfg(feature = "updater")] + // { + // builder = builder.plugin(tauri_plugin_updater::Builder::new().build()); + // } builder = builder .plugin(tauri_plugin_single_instance::init(|app, args, _cwd| {