mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 00:55:13 +01:00
3.0.5231.40980
This commit is contained in:
@@ -45,6 +45,13 @@ namespace MediaBrowser.Server.Implementations.Notifications
|
||||
Variables = new List<string>{"Name", "Version"}
|
||||
},
|
||||
|
||||
new NotificationTypeInfo
|
||||
{
|
||||
Type = NotificationType.PluginError.ToString(),
|
||||
DefaultTitle = "{Name} has encountered an error: {Message}",
|
||||
Variables = new List<string>{"Name", "Message"}
|
||||
},
|
||||
|
||||
new NotificationTypeInfo
|
||||
{
|
||||
Type = NotificationType.PluginUninstalled.ToString(),
|
||||
@@ -115,7 +122,11 @@ namespace MediaBrowser.Server.Implementations.Notifications
|
||||
Update(type);
|
||||
}
|
||||
|
||||
return knownTypes.OrderBy(i => i.Category).ThenBy(i => i.Name);
|
||||
var systemName = _localization.GetLocalizedString("CategorySystem");
|
||||
|
||||
return knownTypes.OrderByDescending(i => string.Equals(i.Category, systemName, StringComparison.OrdinalIgnoreCase))
|
||||
.ThenBy(i => i.Category)
|
||||
.ThenBy(i => i.Name);
|
||||
}
|
||||
|
||||
private void Update(NotificationTypeInfo note)
|
||||
@@ -128,6 +139,10 @@ namespace MediaBrowser.Server.Implementations.Notifications
|
||||
{
|
||||
note.Category = _localization.GetLocalizedString("CategoryUser");
|
||||
}
|
||||
else if (note.Type.IndexOf("Plugin", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
note.Category = _localization.GetLocalizedString("CategoryPlugin");
|
||||
}
|
||||
else
|
||||
{
|
||||
note.Category = _localization.GetLocalizedString("CategorySystem");
|
||||
|
||||
Reference in New Issue
Block a user