Favoriten medienuebergreifend, Startkategorie Favoriten
This commit is contained in:
parent
6e10f0b979
commit
5e8014c127
2 changed files with 5 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ public partial class MainWindow : Window
|
|||
|
||||
private readonly ObservableCollection<Channel> _allChannels = new();
|
||||
private readonly ObservableCollection<Channel> _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);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ public class AppSettings
|
|||
/// <summary>Online-Sender (ÖR-TV + Webradio aus Assets\online-sources.json) zusätzlich zur FritzBox-Liste anzeigen</summary>
|
||||
public bool ShowOnlineSources { get; set; } = true;
|
||||
|
||||
/// <summary>Startkategorie beim App-Start (default: Favoriten)</summary>
|
||||
public string StartCategory { get; set; } = "fav";
|
||||
|
||||
private static readonly string ConfigPath = AppPaths.Settings;
|
||||
|
||||
public static AppSettings Load()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue