Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Attempt to load DS4Windows config when loading WelcomeDialog for a se…
Browse files Browse the repository at this point in the history
…parate process

Makes sure set translation choice is used
  • Loading branch information
Ryochan7 committed Dec 1, 2023
1 parent 7bc52c0 commit c55927c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions DS4Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,17 @@ private void CheckOptions(ArgumentParser parser)
// Might not be needed here
DS4Windows.Global.RefreshViGEmBusInfo();

// Load DS4Windows config if it exists
DS4Windows.Global.FindConfigLocation();
bool readAppConfig = DS4Windows.Global.Load();
if (readAppConfig)
{
// Have app use selected culture
SetUICulture(DS4Windows.Global.UseLang);
DS4Windows.AppThemeChoice themeChoice = DS4Windows.Global.UseCurrentTheme;
ChangeTheme(DS4Windows.Global.UseCurrentTheme, false);
}

CreateBaseThread();
DS4Forms.WelcomeDialog dialog = new DS4Forms.WelcomeDialog(true);
dialog.ShowDialog();
Expand Down

0 comments on commit c55927c

Please sign in to comment.