feat(entitlement): gate 60 fps output through Steam
This commit is contained in:
@@ -66,6 +66,7 @@ public partial class MainViewModel : ViewModelBase
|
||||
{
|
||||
_youtubeBroadcastLive = false;
|
||||
OnPropertyChanged(nameof(IsOffline));
|
||||
OnPropertyChanged(nameof(CanChangeQuality));
|
||||
OnPropertyChanged(nameof(IsLive));
|
||||
OnPropertyChanged(nameof(IsEditMode));
|
||||
OnPropertyChanged(nameof(RecDotBrush));
|
||||
@@ -91,6 +92,7 @@ public partial class MainViewModel : ViewModelBase
|
||||
|
||||
public bool IsOffline => StreamStatus == StreamStatus.Offline;
|
||||
public bool IsLive => StreamStatus == StreamStatus.Streaming;
|
||||
public bool CanChangeQuality => IsOffline && !IsRecording;
|
||||
public bool IsLivePrivate => IsLive && string.Equals(StreamVisibility, "Private", StringComparison.OrdinalIgnoreCase);
|
||||
public string RecDotBrush => !IsRecording
|
||||
? ThemeBrush.Hex("Brush.OnSurfaceDisabled")
|
||||
@@ -151,6 +153,7 @@ public partial class MainViewModel : ViewModelBase
|
||||
internal set
|
||||
{
|
||||
if (!SetProperty(ref _isRecording, value)) return;
|
||||
OnPropertyChanged(nameof(CanChangeQuality));
|
||||
OnPropertyChanged(nameof(RecDotBrush));
|
||||
OnPropertyChanged(nameof(RecTextBrush));
|
||||
OnPropertyChanged(nameof(RecDotOpacity));
|
||||
@@ -450,10 +453,15 @@ public partial class MainViewModel : ViewModelBase
|
||||
get => _selectedQuality;
|
||||
set
|
||||
{
|
||||
if (!CanChangeQuality)
|
||||
{
|
||||
OnPropertyChanged(nameof(SelectedQuality));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!HasProOutput && value.RequiresPro)
|
||||
{
|
||||
OnPropertyChanged(nameof(SelectedQuality));
|
||||
OpenAboutCommand.Execute(null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user