feat(downloads): Download cancelling

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-21 16:46:05 +11:00
parent 18b914918c
commit 450bca9c5b
6 changed files with 44 additions and 12 deletions

View File

@ -1,5 +1,7 @@
use std::sync::Mutex;
use log::info;
use crate::{AppError, AppState};
#[tauri::command]
@ -37,6 +39,7 @@ pub fn stop_game_download(
state: tauri::State<'_, Mutex<AppState>>,
game_id: String
) {
info!("Cancelling game download {}", game_id);
state
.lock()
.unwrap()