Fix compile error

This commit is contained in:
Tyrrrz 2025-03-18 20:22:56 +02:00
parent 0a3a6f465c
commit d81fcabd28

View File

@ -43,7 +43,8 @@ public partial class DownloadMultipleSetupViewModel(
[Container.Mp4, Container.WebM, Container.Mp3, new("ogg")];
public IReadOnlyList<VideoQualityPreference> AvailableVideoQualityPreferences { get; } =
Enum.GetValues<VideoQualityPreference>().Reverse().ToArray();
// Without .AsEnumerable(), the below line throws a compile-time error starting with .NET SDK v9.0.200
Enum.GetValues<VideoQualityPreference>().AsEnumerable().Reverse().ToArray();
[RelayCommand]
private void Initialize()