mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 10:16:17 +02:00
project groups: copy file name for removed targets, disable actions for removed targets
git-svn-id: trunk@50401 -
This commit is contained in:
parent
a33c0dd6d6
commit
30000af935
@ -669,7 +669,7 @@ Var
|
||||
T: TPGCompileTarget;
|
||||
begin
|
||||
T:=SelectedTarget;
|
||||
Result:=Assigned(T) and (ATargetAction in T.AllowedActions);
|
||||
Result:=Assigned(T) and (not T.Removed) and (ATargetAction in T.AllowedActions);
|
||||
If Assigned(AAction) then
|
||||
AAction.Enabled:=Result;
|
||||
end;
|
||||
@ -736,7 +736,8 @@ var
|
||||
ND: TNodeData;
|
||||
begin
|
||||
ND:=SelectedNodeData;
|
||||
(Sender as TAction).Enabled:=(ND<>nil) and (ND.NodeType in [ntTarget,ntProjectGroup,ntFile]);
|
||||
(Sender as TAction).Enabled:=(ND<>nil)
|
||||
and ((ND.Target<>nil) or (ND.NodeType in [ntFile]));
|
||||
UpdateIDEMenuCommandFromAction(Sender,cmdTargetCopyFilename);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user