mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +02:00
[File Explorer] fix enabling all modules at start (#12599)
This commit is contained in:
@@ -16,9 +16,7 @@ PowerPreviewModule::PowerPreviewModule() :
|
|||||||
m_moduleName(GET_RESOURCE_STRING(IDS_MODULE_NAME)),
|
m_moduleName(GET_RESOURCE_STRING(IDS_MODULE_NAME)),
|
||||||
app_key(powerpreviewConstants::ModuleKey)
|
app_key(powerpreviewConstants::ModuleKey)
|
||||||
{
|
{
|
||||||
// Initialize the toggle states for each module
|
// Initialize the preview modules.
|
||||||
init_settings();
|
|
||||||
|
|
||||||
m_fileExplorerModules.emplace_back(std::make_unique<PreviewHandlerSettings>(
|
m_fileExplorerModules.emplace_back(std::make_unique<PreviewHandlerSettings>(
|
||||||
true,
|
true,
|
||||||
L"svg-previewer-toggle-setting",
|
L"svg-previewer-toggle-setting",
|
||||||
@@ -44,6 +42,9 @@ PowerPreviewModule::PowerPreviewModule() :
|
|||||||
std::make_unique<RegistryWrapper>(),
|
std::make_unique<RegistryWrapper>(),
|
||||||
L".svg\\shellex\\{E357FCCD-A995-4576-B01F-234630154E96}"));
|
L".svg\\shellex\\{E357FCCD-A995-4576-B01F-234630154E96}"));
|
||||||
|
|
||||||
|
// Initialize the toggle states for each module.
|
||||||
|
init_settings();
|
||||||
|
|
||||||
// File Explorer might be disabled if user updated from old to new settings.
|
// File Explorer might be disabled if user updated from old to new settings.
|
||||||
// Initialize the registry state in the constructor as PowerPreviewModule::enable/disable will not be called on startup
|
// Initialize the registry state in the constructor as PowerPreviewModule::enable/disable will not be called on startup
|
||||||
update_registry_to_match_toggles();
|
update_registry_to_match_toggles();
|
||||||
|
|||||||
Reference in New Issue
Block a user