From 082c31232532e29a1067c0d9dbb3768ed9a40aa1 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Tue, 25 Jul 2023 12:27:53 +0100 Subject: [PATCH] [Runner]ask to restart the computer after update (#27607) * [Runner]Ask to restart the computer after update * More detailed explanation on why the restart --- src/runner/Resources.resx | 4 ++++ src/runner/main.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/runner/Resources.resx b/src/runner/Resources.resx index 2f5198b2d1..ae203e2a3d 100644 --- a/src/runner/Resources.resx +++ b/src/runner/Resources.resx @@ -122,4 +122,8 @@ Bug report .zip file has been created on your Desktop. + + A new PowerToys version has been installed. Please restart the computer when possible, to fully reload File Explorer extensions. + File Explorer refers to the Windows File Explorer application. + diff --git a/src/runner/main.cpp b/src/runner/main.cpp index e598adbabc..1adf8fd1c6 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -106,6 +106,11 @@ int runner(bool isProcessElevated, bool openSettings, std::string settingsWindow int result = -1; try { + if (!openOobe && openScoobe) + { + notifications::show_toast(GET_RESOURCE_STRING(IDS_PT_VERSION_CHANGE_ASK_FOR_COMPUTER_RESTART).c_str(), L"PowerToys"); + } + std::thread{ [] { PeriodicUpdateWorker(); } }.detach();