File tree 3 files changed +15
-3
lines changed
installer/PowerToysSetupCustomActions
settings-ui/Settings.UI.Library
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ UINT __stdcall ApplyModulesRegistryChangeSetsCA(MSIHANDLE hInstall)
75
75
hr = getInstallFolder (hInstall, installationFolder);
76
76
ExitOnFailure (hr, " Failed to get installFolder." );
77
77
78
- for (const auto & changeSet : getAllModulesChangeSets (installationFolder))
78
+ for (const auto & changeSet : getAllOnByDefaultModulesChangeSets (installationFolder))
79
79
{
80
80
if (!changeSet.apply ())
81
81
{
Original file line number Diff line number Diff line change @@ -201,6 +201,18 @@ inline registry::ChangeSet getStlThumbnailHandlerChangeSet(const std::wstring in
201
201
NonLocalizable::ExtSTL);
202
202
}
203
203
204
+ inline std::vector<registry::ChangeSet> getAllOnByDefaultModulesChangeSets (const std::wstring installationDir)
205
+ {
206
+ constexpr bool PER_USER = true ;
207
+ return { getSvgPreviewHandlerChangeSet (installationDir, PER_USER),
208
+ getMdPreviewHandlerChangeSet (installationDir, PER_USER),
209
+ getMonacoPreviewHandlerChangeSet (installationDir, PER_USER),
210
+ getGcodePreviewHandlerChangeSet (installationDir, PER_USER),
211
+ getSvgThumbnailHandlerChangeSet (installationDir, PER_USER),
212
+ getGcodeThumbnailHandlerChangeSet (installationDir, PER_USER),
213
+ getStlThumbnailHandlerChangeSet (installationDir, PER_USER) };
214
+ }
215
+
204
216
inline std::vector<registry::ChangeSet> getAllModulesChangeSets (const std::wstring installationDir)
205
217
{
206
218
constexpr bool PER_USER = true ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public bool EnableMonacoPreviewWordWrap
97
97
}
98
98
}
99
99
100
- private bool enablePdfPreview = true ;
100
+ private bool enablePdfPreview ;
101
101
102
102
[ JsonPropertyName ( "pdf-previewer-toggle-setting" ) ]
103
103
[ JsonConverter ( typeof ( BoolPropertyJsonConverter ) ) ]
@@ -114,7 +114,7 @@ public bool EnablePdfPreview
114
114
}
115
115
}
116
116
117
- private bool enablePdfThumbnail = true ;
117
+ private bool enablePdfThumbnail ;
118
118
119
119
[ JsonPropertyName ( "pdf-thumbnail-toggle-setting" ) ]
120
120
[ JsonConverter ( typeof ( BoolPropertyJsonConverter ) ) ]
You can’t perform that action at this time.
0 commit comments