mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:29:25 +02:00
Cocoa/Form: fix the issue at Desgin time
This commit is contained in:
parent
33f0b15dc1
commit
481187923e
@ -629,6 +629,8 @@ begin
|
||||
form:= window.lclGetTarget;
|
||||
if not (form is TCustomForm) then
|
||||
continue;
|
||||
if csDesigning in TCustomForm(form).ComponentState then
|
||||
continue;
|
||||
style:= TCustomForm(form).FormStyle;
|
||||
if style in fsAllNonSystemStayOnTop then
|
||||
window.setLevel( NSFloatingWindowLevel );
|
||||
@ -663,6 +665,8 @@ begin
|
||||
form:= window.lclGetTarget;
|
||||
if not (form is TCustomForm) then
|
||||
continue;
|
||||
if csDesigning in TCustomForm(form).ComponentState then
|
||||
continue;
|
||||
style:= TCustomForm(form).FormStyle;
|
||||
if style in fsAllNonSystemStayOnTop then begin
|
||||
window.setLevel( NSNormalWindowLevel );
|
||||
|
Loading…
Reference in New Issue
Block a user