my own take on some BASED design decisions

This commit is contained in:
DecDuck
2024-10-24 22:05:58 +11:00
parent 10c8344930
commit 5ed0833e61
11 changed files with 130 additions and 143 deletions

View File

@ -22,7 +22,7 @@ use std::{
use std::sync::Arc;
use tauri_plugin_deep_link::DeepLinkExt;
use crate::db::DatabaseImpls;
use crate::downloads::game_download::{start_game_download, GameDownload};
use crate::downloads::download_manager::{start_game_download, GameDownloadManager};
#[derive(Clone, Copy, Serialize)]
pub enum AppStatus {
@ -47,7 +47,7 @@ pub struct AppState {
status: AppStatus,
user: Option<User>,
games: HashMap<String, Game>,
game_downloads: Vec<Arc<GameDownload>>
game_downloads: Vec<Arc<GameDownloadManager>>
}
#[tauri::command]