Save language changes to file so they're picked up by other apps.

Fixes https://gitlab.com/kicad/code/kicad/issues/1939
This commit is contained in:
Jeff Young 2020-07-31 22:27:37 +01:00
parent 173493b1a8
commit 625eca8170
1 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,9 @@ bool PGM_BASE::SetLanguage( bool first_time )
}
}
GetCommonSettings()->m_System.language = languageSel;
COMMON_SETTINGS* cfg = GetCommonSettings();
cfg->m_System.language = languageSel;
cfg->SaveToFile( GetSettingsManager().GetPathForSettingsFile( cfg ) );
}
// Test if floating point notation is working (bug encountered in cross compilation)