From f55f5a47bc69745c1beafc0f8ba43c71797dbae9 Mon Sep 17 00:00:00 2001 From: Adam Mathieson Date: Tue, 3 May 2022 23:36:50 +0200 Subject: [PATCH] + Suppress Warnings in UI Tester --- OmsiExtensionsUI/ViewModels/MainWindowViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OmsiExtensionsUI/ViewModels/MainWindowViewModel.cs b/OmsiExtensionsUI/ViewModels/MainWindowViewModel.cs index 4735a9f..7ce0e5f 100644 --- a/OmsiExtensionsUI/ViewModels/MainWindowViewModel.cs +++ b/OmsiExtensionsUI/ViewModels/MainWindowViewModel.cs @@ -16,7 +16,10 @@ public class MainWindowViewModel : ViewModelBase private Models.OmsiModel omsiModel; +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + // Disabled warning given they are set in CreateCommands() and UpdateData(). public MainWindowViewModel() +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. { CreateCommands(); }