mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:40:15 +02:00
IDE: close compile progress on restart
git-svn-id: trunk@36308 -
This commit is contained in:
parent
0d5fbc6330
commit
453ccf4100
@ -12272,7 +12272,7 @@ const
|
|||||||
end;
|
end;
|
||||||
//DebugLn('Setting CommandLine');
|
//DebugLn('Setting CommandLine');
|
||||||
CmdLine := ExeName +
|
CmdLine := ExeName +
|
||||||
' --lazarus-pid='+IntToStr(GetProcessID) + ' ' +
|
' --lazarus-pid='+IntToStr(GetProcessID) + ' '+
|
||||||
GetCommandLineParameters(Params, False);
|
GetCommandLineParameters(Params, False);
|
||||||
|
|
||||||
DebugLn('CommandLine 1 : %s', [CmdLine]);
|
DebugLn('CommandLine 1 : %s', [CmdLine]);
|
||||||
@ -12293,6 +12293,7 @@ const
|
|||||||
var CanClose: boolean;
|
var CanClose: boolean;
|
||||||
begin
|
begin
|
||||||
DebugLn(['TMainIDE.DoRestart ']);
|
DebugLn(['TMainIDE.DoRestart ']);
|
||||||
|
CompileProgress.Close;
|
||||||
CanClose:=true;
|
CanClose:=true;
|
||||||
MainIDEBar.OnCloseQuery(Self, CanClose);
|
MainIDEBar.OnCloseQuery(Self, CanClose);
|
||||||
if not CanClose then exit;
|
if not CanClose then exit;
|
||||||
@ -12581,7 +12582,6 @@ begin
|
|||||||
and (BuildLazProfiles.Current.TargetDirectory='')
|
and (BuildLazProfiles.Current.TargetDirectory='')
|
||||||
and MainBuildBoss.BuildTargetIDEIsDefault
|
and MainBuildBoss.BuildTargetIDEIsDefault
|
||||||
then begin
|
then begin
|
||||||
CompileProgress.Close;
|
|
||||||
mnuRestartClicked(nil);
|
mnuRestartClicked(nil);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user