mirror of
https://github.com/C9Glax/tranga.git
synced 2025-04-15 12:53:17 +02:00
Update TrangaSettings request limits to private set
This commit is contained in:
parent
339f40b61b
commit
cd08d9d78b
@ -31,7 +31,7 @@ public static class TrangaSettings
|
|||||||
{RequestType.MangaCover, 250},
|
{RequestType.MangaCover, 250},
|
||||||
{RequestType.Default, 60}
|
{RequestType.Default, 60}
|
||||||
};
|
};
|
||||||
public static Dictionary<RequestType, int> requestLimits { get; set; } = DefaultRequestLimits;
|
public static Dictionary<RequestType, int> requestLimits { get; private set; } = DefaultRequestLimits;
|
||||||
|
|
||||||
public static TimeSpan NotificationUrgencyDelay(NotificationUrgency urgency) => urgency switch
|
public static TimeSpan NotificationUrgencyDelay(NotificationUrgency urgency) => urgency switch
|
||||||
{
|
{
|
||||||
@ -39,7 +39,7 @@ public static class TrangaSettings
|
|||||||
NotificationUrgency.Normal => TimeSpan.FromMinutes(5),
|
NotificationUrgency.Normal => TimeSpan.FromMinutes(5),
|
||||||
NotificationUrgency.Low => TimeSpan.FromMinutes(10),
|
NotificationUrgency.Low => TimeSpan.FromMinutes(10),
|
||||||
_ => TimeSpan.FromHours(1)
|
_ => TimeSpan.FromHours(1)
|
||||||
};
|
}; //TODO make this a setting?
|
||||||
|
|
||||||
public static void Load()
|
public static void Load()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user