Fix Settings Window

This commit is contained in:
Isaac Marovitz 2024-02-09 13:16:22 -05:00
parent 23979bda26
commit 8582a5eb7c
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -401,10 +401,13 @@ namespace Ryujinx.Ava.UI.ViewModels
ShowConfirmExit = config.ShowConfirmExit; ShowConfirmExit = config.ShowConfirmExit;
HideCursor = (int)config.HideCursor.Value; HideCursor = (int)config.HideCursor.Value;
if (Program.PreviewerDetached)
{
GameDirectories.Clear(); GameDirectories.Clear();
GameDirectories.AddRange(config.UI.GameDirs.Value); GameDirectories.AddRange(config.Ui.GameDirs.Value);
}
BaseStyleIndex = config.UI.BaseStyle == "Light" ? 0 : 1; BaseStyleIndex = config.Ui.BaseStyle == "Light" ? 0 : 1;
// Input // Input
EnableDockedMode = config.System.EnableDockedMode; EnableDockedMode = config.System.EnableDockedMode;
@ -488,10 +491,10 @@ namespace Ryujinx.Ava.UI.ViewModels
if (_directoryChanged) if (_directoryChanged)
{ {
List<string> gameDirs = new(GameDirectories); List<string> 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 // Input
config.System.EnableDockedMode.Value = EnableDockedMode; config.System.EnableDockedMode.Value = EnableDockedMode;