From 6fafb0150e2b26cd7929f918cbd181b9d98a93aa Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Fri, 31 Jul 2020 14:22:05 +0300 Subject: [PATCH] autoupdate: set app_id in time for download_update to use it (#5346) --- src/runner/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/main.cpp b/src/runner/main.cpp index 254c1dbc6c..6b79edf2c3 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -114,7 +114,6 @@ int runner(bool isProcessElevated) } }.detach(); } - notifications::set_application_id(APPLICATION_ID); notifications::register_background_toast_handler(); chdir_current_executable(); @@ -306,6 +305,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine { return 0; } + notifications::set_application_id(APPLICATION_ID); int n_cmd_args = 0; LPWSTR* cmd_arg_list = CommandLineToArgvW(GetCommandLineW(), &n_cmd_args);