mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
Maximum concurrent downloads (too many crashes the application)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user