change path

This commit is contained in:
CherretGit
2025-11-17 21:32:48 +07:00
parent d58792fbfc
commit f29ed9de63

View File

@@ -6,7 +6,7 @@ pub async fn set_autostart() -> Result<(), anyhow::Error> {
let autostart_path = MODULE_PATH.join("autostart"); let autostart_path = MODULE_PATH.join("autostart");
if !get_autostart() { if !get_autostart() {
File::create(MODULE_PATH.join("autostart")).await?; File::create(autostart_path).await?;
} else { } else {
fs::remove_file(autostart_path).await?; fs::remove_file(autostart_path).await?;
} }