mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:39:24 +02:00
ide: mitigate the requirements of having an ActiveMode selected for RunOptions, in order to determine if project is a macOS bundle application. #32888, #33634, #33627
git-svn-id: trunk@57735 -
This commit is contained in:
parent
f84ad3c0b2
commit
e3b8d6813a
@ -718,8 +718,9 @@ end;
|
||||
|
||||
function TBuildManager.GetProjectUsesAppBundle: Boolean;
|
||||
begin
|
||||
Result := (Project1<>nil) and (Project1.RunParameterOptions.GetActiveMode<>nil)
|
||||
and (Project1.RunParameterOptions.GetActiveMode.HostApplicationFilename = '')
|
||||
Result := (Project1<>nil)
|
||||
and ( (Project1.RunParameterOptions.GetActiveMode=nil)
|
||||
or (Project1.RunParameterOptions.GetActiveMode.HostApplicationFilename = ''))
|
||||
and (GetTargetOS = 'darwin') and Project1.UseAppBundle;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user