chore: disable: deamon

This commit is contained in:
zhom
2026-03-24 09:08:08 +04:00
parent 95b17e368d
commit 2adbf900ae
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
// Daemon Spawn - Start the daemon from the GUI
// Currently disabled; will be re-enabled in the future
use serde::Deserialize;
use std::fs;
+2 -4
View File
@@ -178,10 +178,8 @@ impl SettingsManager {
}
pub fn should_show_launch_on_login_prompt(&self) -> Result<bool, Box<dyn std::error::Error>> {
let settings = self.load_settings()?;
// Show if: user has NOT declined AND autostart is NOT enabled
let autostart_enabled = crate::daemon::autostart::is_autostart_enabled();
Ok(!settings.launch_on_login_declined && !autostart_enabled)
// Daemon is currently disabled, never show this prompt
Ok(false)
}
pub fn decline_launch_on_login(&self) -> Result<(), Box<dyn std::error::Error>> {