mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 13:20:13 +02:00
Packager: One more improvement for not closing package editor while compiling.
git-svn-id: trunk@62948 -
This commit is contained in:
parent
c6a922e9c2
commit
f1add4d1d5
@ -3401,14 +3401,17 @@ begin
|
|||||||
else
|
else
|
||||||
LazPackage.Modified:=false; // clear modified flag, so that it will be closed
|
LazPackage.Modified:=false; // clear modified flag, so that it will be closed
|
||||||
end;
|
end;
|
||||||
if (Result=mrOK) and not MainIDE.IDEIsClosing then
|
if not MainIDE.IDEIsClosing then
|
||||||
begin
|
begin
|
||||||
EnvironmentOptions.LastOpenPackages.Remove(LazPackage.Filename);
|
|
||||||
MainIDE.SaveEnvironment;
|
|
||||||
if FCompiling then begin
|
if FCompiling then begin
|
||||||
DebugLn(['TPackageEditorForm.CanCloseEditor: ', Caption, ' compiling, do not close.']);
|
DebugLn(['TPackageEditorForm.CanCloseEditor: ', Caption, ' compiling, do not close.']);
|
||||||
Result:=mrCancel;
|
Result:=mrCancel;
|
||||||
end;
|
end;
|
||||||
|
if Result=mrOK then
|
||||||
|
begin
|
||||||
|
EnvironmentOptions.LastOpenPackages.Remove(LazPackage.Filename);
|
||||||
|
MainIDE.SaveEnvironment;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
//debugln(['TPackageEditorForm.CanCloseEditor Result=',dbgs(Result),' ',Caption]);
|
//debugln(['TPackageEditorForm.CanCloseEditor Result=',dbgs(Result),' ',Caption]);
|
||||||
|
Loading…
Reference in New Issue
Block a user