From ee91432916ea5e749f2e0241d86ad57439bc1115 Mon Sep 17 00:00:00 2001 From: Sugita Akira Date: Sat, 10 Jun 2023 21:56:12 -0700 Subject: [PATCH] fix nullness in release configuration --- OpenUtau/ViewModels/TrackHeaderViewModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenUtau/ViewModels/TrackHeaderViewModel.cs b/OpenUtau/ViewModels/TrackHeaderViewModel.cs index 89bf9ad71..1e6727ac5 100644 --- a/OpenUtau/ViewModels/TrackHeaderViewModel.cs +++ b/OpenUtau/ViewModels/TrackHeaderViewModel.cs @@ -41,14 +41,13 @@ public class TrackHeaderViewModel : ViewModelBase, IActivatableViewModel { private readonly UTrack track; + // Parameterless constructor for Avalonia preview only. public TrackHeaderViewModel() { -#if DEBUG SelectSingerCommand = ReactiveCommand.Create(_ => { }); SelectPhonemizerCommand = ReactiveCommand.Create(_ => { }); SelectRendererCommand = ReactiveCommand.Create(_ => { }); Activator = new ViewModelActivator(); track = new UTrack(DocManager.Inst.Project); -#endif } public TrackHeaderViewModel(UTrack track) {