mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-12 06:47:53 +02:00
Website: Added connector NotificationManager LunaSea
Added Update Method for TrangaSettings for LunaSea #21
This commit is contained in:
@ -70,8 +70,14 @@ public class TrangaSettings
|
||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(Gotify));
|
||||
notificationManagers.Add(new Gotify(values[0], values[1], logger));
|
||||
break;
|
||||
case UpdateField.LunaSea:
|
||||
if(values.Length != 1)
|
||||
return;
|
||||
notificationManagers.RemoveWhere(nm => nm.GetType() == typeof(LunaSea));
|
||||
notificationManagers.Add(new LunaSea(values[0], logger));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public enum UpdateField { DownloadLocation, Komga, Kavita, Gotify}
|
||||
public enum UpdateField { DownloadLocation, Komga, Kavita, Gotify, LunaSea}
|
||||
}
|
Reference in New Issue
Block a user