[ImageResizer] Migrate settings from registry to JSON. (#2604)

* Migrate ImageResizer settings from registry to JSON.

* Update last loaded time read/write IO operations.

* Rename registry helper functions.
This commit is contained in:
vldmr11080
2020-05-05 09:00:50 +02:00
committed by GitHub
parent c14c51f551
commit 2b4b23f726
5 changed files with 140 additions and 69 deletions

View File

@@ -37,7 +37,7 @@ HRESULT CContextMenuHandler::Initialize(_In_opt_ PCIDLIST_ABSOLUTE pidlFolder, _
{
Uninitialize();
if (!CSettings::GetEnabled())
if (!CSettingsInstance().GetEnabled())
{
return E_FAIL;
}
@@ -62,7 +62,7 @@ HRESULT CContextMenuHandler::QueryContextMenu(_In_ HMENU hmenu, UINT indexMenu,
{
return S_OK;
}
if (!CSettings::GetEnabled())
if (!CSettingsInstance().GetEnabled())
{
return E_FAIL;
}
@@ -354,7 +354,7 @@ HRESULT __stdcall CContextMenuHandler::GetCanonicalName(GUID* pguidCommandName)
HRESULT __stdcall CContextMenuHandler::GetState(IShellItemArray* psiItemArray, BOOL fOkToBeSlow, EXPCMDSTATE* pCmdState)
{
if (!CSettings::GetEnabled())
if (!CSettingsInstance().GetEnabled())
{
*pCmdState = ECS_HIDDEN;
return S_OK;