[Runner]ask to restart the computer after update (#27607)

* [Runner]Ask to restart the computer after update

* More detailed explanation on why the restart
This commit is contained in:
Jaime Bernardo
2023-07-25 12:27:53 +01:00
committed by GitHub
parent 75cac46ed3
commit 082c312325
2 changed files with 9 additions and 0 deletions

View File

@@ -122,4 +122,8 @@
<data name="BUGREPORT_SUCCESS" xml:space="preserve">
<value>Bug report .zip file has been created on your Desktop.</value>
</data>
<data name="PT_VERSION_CHANGE_ASK_FOR_COMPUTER_RESTART" xml:space="preserve">
<value>A new PowerToys version has been installed. Please restart the computer when possible, to fully reload File Explorer extensions.</value>
<comment>File Explorer refers to the Windows File Explorer application.</comment>
</data>
</root>

View File

@@ -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();