fix(db): Added Settings component

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-05 19:32:55 +11:00
parent 9e82a0b3c3
commit 8aad64ffa7
3 changed files with 3 additions and 1 deletions

View File

@ -268,6 +268,7 @@ fn handle_invalid_database(_e: RustbreakError, db_path: PathBuf, games_base_dir:
installed_game_version: HashMap::new(),
},
prev_database: Some(new_path.into()),
settings: Settings { autostart: false },
};
PathDatabase::create_at_path(db_path, db)

View File

@ -155,7 +155,7 @@ pub fn download_game_chunk(
if content_length.is_none() {
error!("Recieved 0 length content from server");
return Err(ApplicationDownloadError::Communication(
RemoteAccessError::InvalidResponse,
RemoteAccessError::InvalidResponse(response.json().unwrap()),
));
}

View File

@ -23,6 +23,7 @@ use db::{
add_download_dir, delete_download_dir, fetch_download_dir_stats, DatabaseInterface, GameDownloadStatus,
DATA_ROOT_DIR,
};
use debug::fetch_system_data;
use download_manager::download_manager::DownloadManager;
use download_manager::download_manager_builder::DownloadManagerBuilder;
use games::downloads::download_commands::{cancel_game, download_game, move_game_in_queue, pause_game_downloads, resume_game_downloads};