IDE: Disable "Change build mode" button on coolbar during build. Issue #40909

This commit is contained in:
n7800 2024-10-21 19:36:41 +05:00 committed by Juha
parent c3c7999e20
commit 04759c056d

View File

@ -49,7 +49,7 @@ uses
// BuildIntf
ComponentReg,
// IDEIntf
MenuIntf, LazIDEIntf, IDEWindowIntf, IDEImagesIntf,
MenuIntf, LazIDEIntf, IDEWindowIntf, IDEImagesIntf, IDECommands,
// IdeConfig
CoolBarOptions,
// IDE
@ -872,6 +872,8 @@ begin
itmToolRescanFPCSrcDir.Enabled:=aAllow;
itmToolBuildLazarus.Enabled:=aAllow;
//itmToolConfigureBuildLazarus.Enabled:=aAllow;
// IDE CoolBar
IDECommandList.FindIDECommand(ecProjectChangeBuildMode).Enabled := aAllow;
end;
end.