Skip to content

Commit

Permalink
Thumbnail handlers reload (#12996)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti committed Sep 3, 2021
1 parent b8236d5 commit 0b6d654
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/spell-check/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ asm
asmx
aspnet
aspx
ASSOCCHANGED
ASYNCWINDOWPLACEMENT
ASYNCWINDOWPOS
atl
Expand Down Expand Up @@ -844,6 +845,7 @@ IDirectory
IDispatch
IDisposable
idl
IDLIST
IDOK
IDOn
IDR
Expand Down Expand Up @@ -1855,6 +1857,8 @@ sfgao
SFGAOF
SHAREIMAGELISTS
sharpkeys
SHCNE
SHCNF
shcore
shellapi
SHELLDLL
Expand Down
7 changes: 7 additions & 0 deletions src/modules/previewpane/powerpreview/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "trace.h"
#include <iostream>
#include <atlstr.h>
#include <powerpreview/thumbnail_provider.h>
#include <ShlObj_core.h>

using namespace std;

Expand Down Expand Up @@ -98,6 +100,11 @@ namespace PowerPreviewSettings
{
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
else
Expand Down

0 comments on commit 0b6d654

Please sign in to comment.