Maximum concurrent downloads (too many crashes the application)

This commit is contained in:
2025-09-04 23:33:42 +02:00
parent b24308021b
commit 0cb239a4e6
2 changed files with 16 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ public struct TrangaSettings()
public Dictionary<RequestType, int> RequestLimits { get; set; } = DefaultRequestLimits;
public string DownloadLanguage { get; set; } = "en";
public int MaxConcurrentDownloads { get; set; } = 5;
public static TrangaSettings Load()
{
@@ -109,4 +111,10 @@ public struct TrangaSettings()
this.DownloadLanguage = language;
Save();
}
public void SetMaxConcurrentDownloads(int value)
{
this.MaxConcurrentDownloads = value;
Save();
}
}