mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-31 01:34:58 +02:00
Fix loading localization file (-L) not working regression
This commit is contained in:
parent
f3261f8620
commit
1c55e0daa7
@ -411,6 +411,13 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int)
|
||||
::MessageBox(NULL, COMMAND_ARG_HELP, TEXT("Notepad++ Command Argument Help"), MB_OK);
|
||||
|
||||
NppParameters& nppParameters = NppParameters::getInstance();
|
||||
|
||||
if (cmdLineParams._localizationPath != TEXT(""))
|
||||
{
|
||||
// setStartWithLocFileName() should be called before parameters are loaded
|
||||
nppParameters.setStartWithLocFileName(cmdLineParams._localizationPath);
|
||||
}
|
||||
|
||||
nppParameters.load();
|
||||
NppGUI & nppGui = const_cast<NppGUI &>(nppParameters.getNppGUI());
|
||||
|
||||
@ -424,11 +431,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int)
|
||||
cmdLineParams._isNoSession = true;
|
||||
}
|
||||
|
||||
if (cmdLineParams._localizationPath != TEXT(""))
|
||||
{
|
||||
nppParameters.setStartWithLocFileName(cmdLineParams._localizationPath);
|
||||
}
|
||||
|
||||
nppParameters.setFunctionListExportBoolean(doFunctionListExport);
|
||||
nppParameters.setPrintAndExitBoolean(doPrintAndQuit);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user