mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Thumbnail handlers reload (#12996)
This commit is contained in:
committed by
GitHub
parent
b8236d55e2
commit
0b6d654ec8
4
.github/actions/spell-check/expect.txt
vendored
4
.github/actions/spell-check/expect.txt
vendored
@@ -103,6 +103,7 @@ asm
|
|||||||
asmx
|
asmx
|
||||||
aspnet
|
aspnet
|
||||||
aspx
|
aspx
|
||||||
|
ASSOCCHANGED
|
||||||
ASYNCWINDOWPLACEMENT
|
ASYNCWINDOWPLACEMENT
|
||||||
ASYNCWINDOWPOS
|
ASYNCWINDOWPOS
|
||||||
atl
|
atl
|
||||||
@@ -844,6 +845,7 @@ IDirectory
|
|||||||
IDispatch
|
IDispatch
|
||||||
IDisposable
|
IDisposable
|
||||||
idl
|
idl
|
||||||
|
IDLIST
|
||||||
IDOK
|
IDOK
|
||||||
IDOn
|
IDOn
|
||||||
IDR
|
IDR
|
||||||
@@ -1855,6 +1857,8 @@ sfgao
|
|||||||
SFGAOF
|
SFGAOF
|
||||||
SHAREIMAGELISTS
|
SHAREIMAGELISTS
|
||||||
sharpkeys
|
sharpkeys
|
||||||
|
SHCNE
|
||||||
|
SHCNF
|
||||||
shcore
|
shcore
|
||||||
shellapi
|
shellapi
|
||||||
SHELLDLL
|
SHELLDLL
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <atlstr.h>
|
#include <atlstr.h>
|
||||||
|
#include <powerpreview/thumbnail_provider.h>
|
||||||
|
#include <ShlObj_core.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -98,6 +100,11 @@ namespace PowerPreviewSettings
|
|||||||
{
|
{
|
||||||
Trace::PowerPreviewSettingsUpdateFailed(this->GetToggleSettingName().c_str(), lastState, newState, enabled);
|
Trace::PowerPreviewSettingsUpdateFailed(this->GetToggleSettingName().c_str(), lastState, newState, enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dynamic_cast<ThumbnailProviderSettings*>(this))
|
||||||
|
{
|
||||||
|
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// If process is not elevated, return false as it is not possible to update the registry
|
// If process is not elevated, return false as it is not possible to update the registry
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user