aboutsummaryrefslogtreecommitdiff
path: root/Emby.Notifications
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-12-15 18:25:36 +0100
committerCody Robibero (Rebase PR Action) <cody@robibe.ro>2021-12-27 14:20:05 +0000
commitea8f40e84a72ab1eb0bdbe4974cb78f7d1b0f552 (patch)
treeae88958599f260ea1d7e586c6a47931a5fe62f6b /Emby.Notifications
parent4441513ca4a64fdf61541e56cbb1091e7aa0395b (diff)
More cleanup
Diffstat (limited to 'Emby.Notifications')
-rw-r--r--Emby.Notifications/CoreNotificationTypes.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/Emby.Notifications/CoreNotificationTypes.cs b/Emby.Notifications/CoreNotificationTypes.cs
index ec3490e23..35aac3a11 100644
--- a/Emby.Notifications/CoreNotificationTypes.cs
+++ b/Emby.Notifications/CoreNotificationTypes.cs
@@ -24,63 +24,63 @@ namespace Emby.Notifications
{
new NotificationTypeInfo
{
- Type = NotificationType.ApplicationUpdateInstalled.ToString()
+ Type = nameof(NotificationType.ApplicationUpdateInstalled)
},
new NotificationTypeInfo
{
- Type = NotificationType.InstallationFailed.ToString()
+ Type = nameof(NotificationType.InstallationFailed)
},
new NotificationTypeInfo
{
- Type = NotificationType.PluginInstalled.ToString()
+ Type = nameof(NotificationType.PluginInstalled)
},
new NotificationTypeInfo
{
- Type = NotificationType.PluginError.ToString()
+ Type = nameof(NotificationType.PluginError)
},
new NotificationTypeInfo
{
- Type = NotificationType.PluginUninstalled.ToString()
+ Type = nameof(NotificationType.PluginUninstalled)
},
new NotificationTypeInfo
{
- Type = NotificationType.PluginUpdateInstalled.ToString()
+ Type = nameof(NotificationType.PluginUpdateInstalled)
},
new NotificationTypeInfo
{
- Type = NotificationType.ServerRestartRequired.ToString()
+ Type = nameof(NotificationType.ServerRestartRequired)
},
new NotificationTypeInfo
{
- Type = NotificationType.TaskFailed.ToString()
+ Type = nameof(NotificationType.TaskFailed)
},
new NotificationTypeInfo
{
- Type = NotificationType.NewLibraryContent.ToString()
+ Type = nameof(NotificationType.NewLibraryContent)
},
new NotificationTypeInfo
{
- Type = NotificationType.AudioPlayback.ToString()
+ Type = nameof(NotificationType.AudioPlayback)
},
new NotificationTypeInfo
{
- Type = NotificationType.VideoPlayback.ToString()
+ Type = nameof(NotificationType.VideoPlayback)
},
new NotificationTypeInfo
{
- Type = NotificationType.AudioPlaybackStopped.ToString()
+ Type = nameof(NotificationType.AudioPlaybackStopped)
},
new NotificationTypeInfo
{
- Type = NotificationType.VideoPlaybackStopped.ToString()
+ Type = nameof(NotificationType.VideoPlaybackStopped)
},
new NotificationTypeInfo
{
- Type = NotificationType.UserLockedOut.ToString()
+ Type = nameof(NotificationType.UserLockedOut)
},
new NotificationTypeInfo
{
- Type = NotificationType.ApplicationUpdateAvailable.ToString()
+ Type = nameof(NotificationType.ApplicationUpdateAvailable)
}
};
@@ -98,7 +98,7 @@ namespace Emby.Notifications
private void Update(NotificationTypeInfo note)
{
- note.Name = _localization.GetLocalizedString("NotificationOption" + note.Type) ?? note.Type;
+ note.Name = _localization.GetLocalizedString("NotificationOption" + note.Type);
note.IsBasedOnUserEvent = note.Type.IndexOf("Playback", StringComparison.OrdinalIgnoreCase) != -1;