mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 12:49:13 +00:00
Fix Preview Plugins
This commit is contained in:
parent
18909195d1
commit
474a557e01
2 changed files with 10 additions and 10 deletions
|
@ -46,6 +46,10 @@ namespace Ryujinx.Ava
|
|||
ConfigurationState.Instance.UI.CustomThemePath.Event += ThemeChanged_Event;
|
||||
ConfigurationState.Instance.UI.EnableCustomTheme.Event += CustomThemeChanged_Event;
|
||||
}
|
||||
else
|
||||
{
|
||||
ConfigurationState.Initialize();
|
||||
}
|
||||
}
|
||||
|
||||
private void CustomThemeChanged_Event(object sender, ReactiveEventArgs<bool> e)
|
||||
|
|
|
@ -35,17 +35,13 @@ namespace Ryujinx.Ava.Common.Locale
|
|||
// Load the system Language Code.
|
||||
string localeLanguageCode = CultureInfo.CurrentCulture.Name.Replace('-', '_');
|
||||
|
||||
// If the view is loaded with the UI Previewer detached, then override it with the saved one or default.
|
||||
if (Program.PreviewerDetached)
|
||||
if (!string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ConfigurationState.Instance.UI.LanguageCode.Value))
|
||||
{
|
||||
localeLanguageCode = ConfigurationState.Instance.UI.LanguageCode.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
localeLanguageCode = DefaultLanguageCode;
|
||||
}
|
||||
localeLanguageCode = ConfigurationState.Instance.Ui.LanguageCode.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
localeLanguageCode = DefaultLanguageCode;
|
||||
}
|
||||
|
||||
// Load en_US as default, if the target language translation is incomplete.
|
||||
|
|
Loading…
Reference in a new issue