From 8582a5eb7c23a2de3a2d61b9c711c39e3c901aa0 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 9 Feb 2024 13:16:22 -0500 Subject: [PATCH] Fix Settings Window --- src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs index 00464d6af..ded94280d 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/SettingsViewModel.cs @@ -401,10 +401,13 @@ namespace Ryujinx.Ava.UI.ViewModels ShowConfirmExit = config.ShowConfirmExit; HideCursor = (int)config.HideCursor.Value; - GameDirectories.Clear(); - GameDirectories.AddRange(config.UI.GameDirs.Value); + if (Program.PreviewerDetached) + { + GameDirectories.Clear(); + GameDirectories.AddRange(config.Ui.GameDirs.Value); + } - BaseStyleIndex = config.UI.BaseStyle == "Light" ? 0 : 1; + BaseStyleIndex = config.Ui.BaseStyle == "Light" ? 0 : 1; // Input EnableDockedMode = config.System.EnableDockedMode; @@ -488,10 +491,10 @@ namespace Ryujinx.Ava.UI.ViewModels if (_directoryChanged) { List gameDirs = new(GameDirectories); - config.UI.GameDirs.Value = gameDirs; + config.Ui.GameDirs.Value = gameDirs; } - config.UI.BaseStyle.Value = BaseStyleIndex == 0 ? "Light" : "Dark"; + config.Ui.BaseStyle.Value = BaseStyleIndex == 0 ? "Light" : "Dark"; // Input config.System.EnableDockedMode.Value = EnableDockedMode;