Skip to content

Commit

Permalink
Fixed #248
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPeel committed Nov 25, 2013
1 parent 6fd9b04 commit 8a93337
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Projects/Simba/extensionmanager.pas
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ function TExtensionManager.LoadPSExtension(Filename: string; enabled: boolean):
ext.Settings := TMMLSettingsSandbox.Create(SimbaSettings.MMLSettings);
ext.Settings.Prefix := format('Extensions/Extension%d/Settings/', [Extensions.Count - 1]);

ext.Enabled := Enabled;

if ((Lowercase(ExtractFileName(Filename)) = 'extension.sex') and (not ext.Settings.IsDirectory(''))) then
if (Enabled) or ((Lowercase(ExtractFileName(Filename)) = 'extension.sex') and (not ext.Settings.IsDirectory(''))) then
ext.Enabled := True;

ext.OnChange := FOnChange;
Expand Down

0 comments on commit 8a93337

Please sign in to comment.