mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:01:38 +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,
|
PkgFile:=PackageGraph.FindFileInAllPackages(AUnitInfo.Filename,true,
|
||||||
not AUnitInfo.IsPartOfProject);
|
not AUnitInfo.IsPartOfProject);
|
||||||
OpenPkgCurF:=Assigned(PkgFile);
|
OpenPkgCurF:=Assigned(PkgFile);
|
||||||
AddCurF:=(not AUnitInfo.IsVirtual) and FileExistsUTF8(AUnitInfo.Filename);
|
AddCurF:=(not AUnitInfo.IsVirtual) and FileExistsUTF8(AUnitInfo.Filename)
|
||||||
|
and not AUnitInfo.IsPartOfProject;
|
||||||
end;
|
end;
|
||||||
MainIDEBar.itmPkgOpenPackageOfCurUnit.Enabled:=OpenPkgCurF;
|
MainIDEBar.itmPkgOpenPackageOfCurUnit.Enabled:=OpenPkgCurF;
|
||||||
MainIDEBar.itmPkgAddCurFileToPkg.Enabled:=AddCurF;
|
MainIDEBar.itmPkgAddCurFileToPkg.Enabled:=AddCurF;
|
||||||
|
Loading…
Reference in New Issue
Block a user