mirror of https://gitlab.com/basile.b/dexed.git
early return
This commit is contained in:
parent
cb6c0a5091
commit
afc69e275d
|
@ -3714,13 +3714,12 @@ end;
|
||||||
function TMainForm.checkProjectLock(message: boolean = true): boolean;
|
function TMainForm.checkProjectLock(message: boolean = true): boolean;
|
||||||
begin
|
begin
|
||||||
result := false;
|
result := false;
|
||||||
if fProjActionsLock then
|
if not fProjActionsLock then
|
||||||
begin
|
exit;
|
||||||
result := true;
|
result := true;
|
||||||
if message then
|
if message then
|
||||||
dlgOkInfo('This action is disabled while a project compiles',
|
dlgOkInfo('This action is disabled while a project compiles',
|
||||||
'Project lock warning');
|
'Project lock warning');
|
||||||
end
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainForm.showProjTitle;
|
procedure TMainForm.showProjTitle;
|
||||||
|
|
Loading…
Reference in New Issue