From a8837a4e620244bffda6aa5d4a3631699a37cddb Mon Sep 17 00:00:00 2001 From: praydog Date: Fri, 22 Dec 2023 15:37:31 -0800 Subject: [PATCH] Fix VD warning popping up multiple times --- UnrealVR/MainWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnrealVR/MainWindow.xaml.cs b/UnrealVR/MainWindow.xaml.cs index 73dddc7..23c839e 100644 --- a/UnrealVR/MainWindow.xaml.cs +++ b/UnrealVR/MainWindow.xaml.cs @@ -507,8 +507,8 @@ private void ImportConfig_Clicked(object sender, RoutedEventArgs e) { private bool m_virtualDesktopWarned = false; private bool m_virtualDesktopChecked = false; - private void Check_VirtualDesktop(bool checkWarn = false) { - if (checkWarn && m_virtualDesktopWarned) { + private void Check_VirtualDesktop() { + if (m_virtualDesktopWarned) { return; } @@ -859,7 +859,7 @@ private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs }; } - Check_VirtualDesktop(true); + Check_VirtualDesktop(); m_iniListView.ItemsSource = null; // Because we are switching processes. InitializeConfig(p.ProcessName);