mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[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:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user