Skip to content

Commit 8a93337

Browse files
committed
Fixed #248
6b308c3
1 parent 6fd9b04 commit 8a93337

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Projects/Simba/extensionmanager.pas

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ function TExtensionManager.LoadPSExtension(Filename: string; enabled: boolean):
119119
ext.Settings := TMMLSettingsSandbox.Create(SimbaSettings.MMLSettings);
120120
ext.Settings.Prefix := format('Extensions/Extension%d/Settings/', [Extensions.Count - 1]);
121121

122-
ext.Enabled := Enabled;
123-
124-
if ((Lowercase(ExtractFileName(Filename)) = 'extension.sex') and (not ext.Settings.IsDirectory(''))) then
122+
if (Enabled) or ((Lowercase(ExtractFileName(Filename)) = 'extension.sex') and (not ext.Settings.IsDirectory(''))) then
125123
ext.Enabled := True;
126124

127125
ext.OnChange := FOnChange;

0 commit comments

Comments
 (0)