From 49cbe4b328d97833e75edccfeea0cf33e797b20f Mon Sep 17 00:00:00 2001 From: GreemDev Date: Fri, 24 Oct 2025 18:24:23 -0500 Subject: [PATCH] UI: fix "Enable UI logs" not being persisted upon relaunch Closes ryujinx#5 (it was saved, just not loaded back) --- src/Ryujinx/Program.cs | 5 +---- .../Systems/Configuration/ConfigurationState.Migration.cs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs index ecf6779dc..509a9f18e 100644 --- a/src/Ryujinx/Program.cs +++ b/src/Ryujinx/Program.cs @@ -221,10 +221,7 @@ namespace Ryujinx.Ava } // When you first load the program, copy to remember the path for the global configuration - if (GlobalConfigurationPath == null) - { - GlobalConfigurationPath = ConfigurationPath; - } + GlobalConfigurationPath ??= ConfigurationPath; UseHardwareAcceleration = ConfigurationState.Instance.EnableHardwareAcceleration; diff --git a/src/Ryujinx/Systems/Configuration/ConfigurationState.Migration.cs b/src/Ryujinx/Systems/Configuration/ConfigurationState.Migration.cs index 57619aa70..a91a74711 100644 --- a/src/Ryujinx/Systems/Configuration/ConfigurationState.Migration.cs +++ b/src/Ryujinx/Systems/Configuration/ConfigurationState.Migration.cs @@ -56,6 +56,7 @@ namespace Ryujinx.Ava.Systems.Configuration Logger.EnableFileLog.Value = cff.EnableFileLog; Logger.EnableDebug.Value = cff.LoggingEnableDebug; + Logger.EnableAvaloniaLog.Value = cff.LoggingEnableAvalonia; Logger.EnableStub.Value = cff.LoggingEnableStub; Logger.EnableInfo.Value = cff.LoggingEnableInfo; Logger.EnableWarn.Value = cff.LoggingEnableWarn;