diff --git a/Projects/Simba/extensionmanager.pas b/Projects/Simba/extensionmanager.pas index 78dcc6ee5..04d0b299a 100644 --- a/Projects/Simba/extensionmanager.pas +++ b/Projects/Simba/extensionmanager.pas @@ -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;