Added persistent download queue with resume support

Implemented automatic saving and loading of the download queue, allowing users to resume unfinished downloads after restarting the application. Added methods to persist the queue state, prompting users to ask if they want to resume queued downloads on startup, and updated queue management logic to support resumed downloads
This commit is contained in:
jp64k
2025-12-31 05:37:47 +01:00
parent 62343f8cf6
commit b92def0283
2 changed files with 114 additions and 34 deletions

View File

@@ -149,6 +149,9 @@ namespace AndroidSideloader.Utilities
public int SortColumn { get; set; } = 0;
public bool SortAscending { get; set; } = true;
// Download queue persistence
public string[] QueuedGames { get; set; } = new string[0];
private SettingsManager()
{
Load();
@@ -280,6 +283,7 @@ namespace AndroidSideloader.Utilities
WindowMaximized = false;
SortColumn = 0;
SortAscending = true;
QueuedGames = new string[0];
Save();
Debug.WriteLine("Default settings created.");