autoupdate: set app_id in time for download_update to use it (#5346)

This commit is contained in:
Andrey Nekrasov
2020-07-31 14:22:05 +03:00
committed by GitHub
parent 49b56d9b52
commit 46ef13dd0f

View File

@@ -114,7 +114,6 @@ int runner(bool isProcessElevated)
} }.detach(); } }.detach();
} }
notifications::set_application_id(APPLICATION_ID);
notifications::register_background_toast_handler(); notifications::register_background_toast_handler();
chdir_current_executable(); chdir_current_executable();
@@ -306,6 +305,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
{ {
return 0; return 0;
} }
notifications::set_application_id(APPLICATION_ID);
int n_cmd_args = 0; int n_cmd_args = 0;
LPWSTR* cmd_arg_list = CommandLineToArgvW(GetCommandLineW(), &n_cmd_args); LPWSTR* cmd_arg_list = CommandLineToArgvW(GetCommandLineW(), &n_cmd_args);