From 2080fb897ba31e4b24be1cba6cd732832ce7d8f3 Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Fri, 3 Jan 2025 16:43:45 -0500 Subject: [PATCH] fix autolaunch name in dev/prod --- src-tauri/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index 5ef24d5..89daa50 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -111,6 +111,7 @@ impl AppConfig { pub async fn match_auto_launch(&mut self, pool: &SqlitePool) -> Result<(), SetupError> { let mgr = self.auto_launch_manager()?; let is_enabled = mgr.is_enabled()?; + dbg!(is_enabled); if is_enabled != self.start_on_login { self.start_on_login = is_enabled; self.save(pool).await?; @@ -122,7 +123,7 @@ impl AppConfig { let path_buf = std::env::current_exe() .map_err(|e| auto_launch::Error::Io(e))?; - let name = if cfg!(debug_assertions) { "Creddy" } else { "Creddy (dev)" }; + let name = if cfg!(debug_assertions) { "Creddy (dev)" } else { "Creddy" }; let mut builder = AutoLaunchBuilder::new(); builder.set_app_name(name); builder.set_app_path(&path_buf.to_string_lossy());