Fix auto-updater disabling not working

Fix #5375
pull/7947/head
Don HO 2020-02-14 01:33:16 +01:00
parent 4eac7d8e94
commit f3261f8620
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,9 @@ 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();
nppParameters.load();
NppGUI & nppGui = const_cast<NppGUI &>(nppParameters.getNppGUI());
bool doUpdateNpp = nppGui._autoUpdateOpt._doAutoUpdate;
bool doUpdatePluginList = nppGui._autoUpdateOpt._doAutoUpdate;
@ -426,7 +428,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int)
{
nppParameters.setStartWithLocFileName(cmdLineParams._localizationPath);
}
nppParameters.load();
nppParameters.setFunctionListExportBoolean(doFunctionListExport);
nppParameters.setPrintAndExitBoolean(doPrintAndQuit);