diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 888736b..9696a75 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -23,7 +23,7 @@ public partial class MainWindow : Window private readonly ObservableCollection _allChannels = new(); private readonly ObservableCollection _filteredChannels = new(); - private string _currentCategory = "all"; + private string _currentCategory = "fav"; // wird in MainWindow_Loaded aus Settings gesetzt private string _searchTerm = ""; private Channel? _currentChannel; private double _volumeBeforeMute = 80; @@ -56,6 +56,7 @@ public partial class MainWindow : Window InitializeComponent(); LstChannels.ItemsSource = _filteredChannels; TxtFritzBox.Text = $"FritzBox: {_settings.FritzBoxIp}"; + _currentCategory = _settings.StartCategory; SldVolume.Value = _settings.Volume; DarkTitleBar.EnableFor(this); diff --git a/Services/AppSettings.cs b/Services/AppSettings.cs index c9ae0b8..87fd4c8 100644 --- a/Services/AppSettings.cs +++ b/Services/AppSettings.cs @@ -13,6 +13,9 @@ public class AppSettings /// Online-Sender (ÖR-TV + Webradio aus Assets\online-sources.json) zusätzlich zur FritzBox-Liste anzeigen public bool ShowOnlineSources { get; set; } = true; + /// Startkategorie beim App-Start (default: Favoriten) + public string StartCategory { get; set; } = "fav"; + private static readonly string ConfigPath = AppPaths.Settings; public static AppSettings Load()