File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ CompactOsModes CompactOsMode
359
359
Components: ImmutableDictionary.Create<string, ImmutableSortedSet<Pass>>(),
360
360
Bloatwares: [],
361
361
ExpressSettings: ExpressSettingsMode.DisableAll,
362
- ScriptSettings: new ScriptSettings([] ),
362
+ ScriptSettings: new ScriptSettings(Scripts: [], RestartExplorer: false ),
363
363
KeySettings: new SkipKeySettings(),
364
364
WallpaperSettings: new DefaultWallpaperSettings(),
365
365
ColorSettings: new DefaultColorSettings(),
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ public static string FileExtension(this ScriptType type)
66
66
}
67
67
68
68
public record class ScriptSettings (
69
- IEnumerable < Script > Scripts
69
+ IEnumerable < Script > Scripts ,
70
+ bool RestartExplorer
70
71
) ;
71
72
72
73
public class Script
@@ -119,6 +120,11 @@ class ScriptModifier(ModifierContext context) : Modifier(context)
119
120
{
120
121
public override void Process ( )
121
122
{
123
+ if ( Configuration . ScriptSettings . RestartExplorer )
124
+ {
125
+ UserOnceScript . RestartExplorer ( ) ;
126
+ }
127
+
122
128
var infos = Configuration . ScriptSettings . Scripts . Select ( ScriptInfo . Create ) . ToImmutableList ( ) ;
123
129
if ( infos . IsEmpty )
124
130
{
You can’t perform that action at this time.
0 commit comments