From 289c4dd1dac6c87fdf00b094b731551bcfd7845e Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:59:52 +0700 Subject: [PATCH] remove radio category --- MusicX/RootWindow.xaml.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/MusicX/RootWindow.xaml.cs b/MusicX/RootWindow.xaml.cs index 6ca3f228..65ca7bf5 100644 --- a/MusicX/RootWindow.xaml.cs +++ b/MusicX/RootWindow.xaml.cs @@ -207,35 +207,36 @@ private async void Window_Loaded(object sender, RoutedEventArgs e) { SymbolRegular icon; - if (section.Title.ToLower() == "главная") + if (section.Title.Equals("главная", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.Home24; } - else if (section.Title.ToLower() == "моя музыка") + else if (section.Title.Equals("моя музыка", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.MusicNote120; } - else if (section.Title.ToLower() == "обзор") + else if (section.Title.Equals("обзор", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.CompassNorthwest28; } - else if (section.Title.ToLower() == "подкасты") + else if (section.Title.Equals("подкасты", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.HeadphonesSoundWave20; } - else if (section.Title.ToLower() == "подписки") + else if (section.Title.Equals("подписки", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.Feed24; } - else if (section.Title.ToLower() == "каталоги") + else if (section.Title.Equals("каталоги", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.People24; } - else if (section.Title.ToLower() == "поиск") + else if (section.Title.Equals("поиск", StringComparison.CurrentCultureIgnoreCase)) { icon = SymbolRegular.Search24; } - else if (section.Title.ToLower().StartsWith("книги")) + else if (section.Title.StartsWith("книги", StringComparison.CurrentCultureIgnoreCase) || + section.Title.StartsWith("радио", StringComparison.CurrentCultureIgnoreCase)) { continue; }