From 62835065c0f1a71668cc71821e22c7b8e86470cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Mon, 4 Oct 2021 14:06:20 +0200 Subject: [PATCH] Add Radios to the systray --- Handlers/MPDHandler.cs | 2 +- Resources/Resources.Designer.cs | 9 +++++++++ Resources/Resources.fr-FR.resx | 3 +++ Views/MainWindow.xaml | 2 +- Views/Systray.xaml | 5 +++++ Views/SystrayViewModel.cs | 12 ++++++++++++ 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Handlers/MPDHandler.cs b/Handlers/MPDHandler.cs index 7a5fc3e..367ab87 100644 --- a/Handlers/MPDHandler.cs +++ b/Handlers/MPDHandler.cs @@ -369,7 +369,7 @@ namespace unison { _cover = BitmapFrame.Create(stream, BitmapCreateOptions.None, BitmapCacheOption.OnLoad); } - catch (System.NotSupportedException e) + catch (System.NotSupportedException) { _cover = null; } diff --git a/Resources/Resources.Designer.cs b/Resources/Resources.Designer.cs index 33918c8..68d218a 100644 --- a/Resources/Resources.Designer.cs +++ b/Resources/Resources.Designer.cs @@ -141,6 +141,15 @@ namespace unison.Resources { } } + /// + /// Looks up a localized string similar to Radios. + /// + public static string Radios { + get { + return ResourceManager.GetString("Radios", resourceCulture); + } + } + /// /// Looks up a localized string similar to Settings. /// diff --git a/Resources/Resources.fr-FR.resx b/Resources/Resources.fr-FR.resx index 23f9d5a..69c75f9 100644 --- a/Resources/Resources.fr-FR.resx +++ b/Resources/Resources.fr-FR.resx @@ -120,6 +120,9 @@ Quitter + + Radios + Pays diff --git a/Views/MainWindow.xaml b/Views/MainWindow.xaml index 2f8db06..018a5d7 100644 --- a/Views/MainWindow.xaml +++ b/Views/MainWindow.xaml @@ -120,7 +120,7 @@ diff --git a/Views/Systray.xaml b/Views/Systray.xaml index 190d7ce..e9d1424 100644 --- a/Views/Systray.xaml +++ b/Views/Systray.xaml @@ -25,6 +25,11 @@ + + + + +