UI polish: YouTube status light, Go Live/Stop Stream buttons with working visibility

This commit is contained in:
2026-08-04 10:32:04 -07:00
parent d4945f4fd0
commit 8ee44f571e
2 changed files with 41 additions and 8 deletions
+12 -1
View File
@@ -31,9 +31,20 @@ public class MainViewModel : ViewModelBase
public StreamStatus StreamStatus
{
get => _streamStatus;
set => SetProperty(ref _streamStatus, value);
set
{
if (SetProperty(ref _streamStatus, value))
{
OnPropertyChanged(nameof(IsOffline));
OnPropertyChanged(nameof(IsLive));
OnPropertyChanged(nameof(StatusDisplay));
}
}
}
public bool IsOffline => StreamStatus == StreamStatus.Offline;
public bool IsLive => StreamStatus == StreamStatus.Streaming;
public StreamHealth CurrentHealth
{
get => _currentHealth;