feat(downloads): Added manifest.json utility for persistent download progress

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-12-24 12:21:00 +11:00
parent 0a1dddf7ef
commit d9d0122c3d
5 changed files with 114 additions and 18 deletions

18
src-tauri/src/cleanup.rs Normal file
View File

@ -0,0 +1,18 @@
use std::sync::Mutex;
use log::info;
use tauri::AppHandle;
use crate::AppState;
#[tauri::command]
pub fn quit(app: tauri::AppHandle) {
cleanup_and_exit(&app);
}
pub fn cleanup_and_exit(app: &AppHandle, ) {
info!("exiting drop application...");
app.exit(0);
}