mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +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">
|
<data name="BUGREPORT_SUCCESS" xml:space="preserve">
|
||||||
<value>Bug report .zip file has been created on your Desktop.</value>
|
<value>Bug report .zip file has been created on your Desktop.</value>
|
||||||
</data>
|
</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>
|
</root>
|
||||||
|
|||||||
@@ -106,6 +106,11 @@ int runner(bool isProcessElevated, bool openSettings, std::string settingsWindow
|
|||||||
int result = -1;
|
int result = -1;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (!openOobe && openScoobe)
|
||||||
|
{
|
||||||
|
notifications::show_toast(GET_RESOURCE_STRING(IDS_PT_VERSION_CHANGE_ASK_FOR_COMPUTER_RESTART).c_str(), L"PowerToys");
|
||||||
|
}
|
||||||
|
|
||||||
std::thread{ [] {
|
std::thread{ [] {
|
||||||
PeriodicUpdateWorker();
|
PeriodicUpdateWorker();
|
||||||
} }.detach();
|
} }.detach();
|
||||||
|
|||||||
Reference in New Issue
Block a user