mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 00:31:33 +10:00
feat(downloads): Added manifest.json utility for persistent download progress
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
18
src-tauri/src/cleanup.rs
Normal file
18
src-tauri/src/cleanup.rs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user