feat(queue & game): queue and library UIs

This commit is contained in:
DecDuck
2024-12-17 20:29:54 +11:00
parent 3f71149289
commit 0a20139a7c
12 changed files with 255 additions and 26 deletions

View File

@ -51,7 +51,6 @@ pub enum DownloadManagerStatus {
pub enum GameDownloadStatus {
Queued,
Downloading,
Paused,
Error,
}
@ -143,6 +142,10 @@ impl DownloadManager {
.unwrap();
}
pub fn rearrange(&self, current_index: usize, new_index: usize) {
if current_index == new_index {
return;
};
let needs_pause = current_index == 0 || new_index == 0;
if needs_pause {
self.command_sender