mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 08:47:59 +02:00
IDE: ofDoNotActiveSourceEditor of TOpenFlag added
This commit is contained in:
parent
ad71b6b4b4
commit
c000fed74d
@ -96,7 +96,8 @@ type
|
||||
ofDoLoadResource,// do open form, datamodule, ... (overriding default)
|
||||
ofLoadHiddenResource,// load component hidden
|
||||
ofAddToProject, // add file to project (if exists)
|
||||
ofInternalFile // opening data from an internal source (e.g. an editor macro (pascal script) from memory)
|
||||
ofInternalFile, // opening data from an internal source (e.g. an editor macro (pascal script) from memory)
|
||||
ofDoNotActiveSourceEditor // do not active the source editor window
|
||||
);
|
||||
TOpenFlags = set of TOpenFlag;
|
||||
|
||||
|
@ -1319,7 +1319,8 @@ begin
|
||||
|
||||
if (FNewEditorInfo <> nil) and (FFlags * [ofProjectLoading, ofRevert] = [])
|
||||
and (FNewEditorInfo.EditorComponent <> nil) then begin
|
||||
SourceEditorManager.ShowActiveWindowOnTop(True);
|
||||
if not (ofDoNotActiveSourceEditor in FFLags) then
|
||||
SourceEditorManager.ShowActiveWindowOnTop(True);
|
||||
exit(ChangeEditorPage);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user