mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 20:50:18 +02:00
IDE: disable Package->"Add active file to package" when the file belongs to a project.
git-svn-id: trunk@32616 -
This commit is contained in:
parent
a725ba2564
commit
4544f7b6e8
@ -3968,7 +3968,8 @@ begin
|
||||
PkgFile:=PackageGraph.FindFileInAllPackages(AUnitInfo.Filename,true,
|
||||
not AUnitInfo.IsPartOfProject);
|
||||
OpenPkgCurF:=Assigned(PkgFile);
|
||||
AddCurF:=(not AUnitInfo.IsVirtual) and FileExistsUTF8(AUnitInfo.Filename);
|
||||
AddCurF:=(not AUnitInfo.IsVirtual) and FileExistsUTF8(AUnitInfo.Filename)
|
||||
and not AUnitInfo.IsPartOfProject;
|
||||
end;
|
||||
MainIDEBar.itmPkgOpenPackageOfCurUnit.Enabled:=OpenPkgCurF;
|
||||
MainIDEBar.itmPkgAddCurFileToPkg.Enabled:=AddCurF;
|
||||
|
Loading…
Reference in New Issue
Block a user