IDE: fix typo about ofDoNotActivateSourceEditor

This commit is contained in:
rich2014 2023-12-04 13:33:30 +08:00
parent cc813766cc
commit 4f0ec7cefa
3 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ type
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)
ofDoNotActiveSourceEditor // do not active the source editor window
ofDoNotActivateSourceEditor // do not active the source editor window
);
TOpenFlags = set of TOpenFlag;

View File

@ -9897,7 +9897,7 @@ begin
continue;
//DebugLn(['TMainIDE.OnBeforeCodeToolBossApplyChanges i=',i,' ',CodeBUf.Filename]);
Flags:=[ofOnlyIfExists,ofDoNotLoadResource,ofRegularFile,ofDoNotActiveSourceEditor];
Flags:=[ofOnlyIfExists,ofDoNotLoadResource,ofRegularFile,ofDoNotActivateSourceEditor];
if CodeBuf.IsVirtual then
Include(Flags,ofVirtualFile);
if DoOpenEditorFile(Manager.SourceChangeCache.BuffersToModify[i].Filename,

View File

@ -1320,7 +1320,7 @@ begin
if (FNewEditorInfo <> nil) and (FFlags * [ofProjectLoading, ofRevert] = [])
and (FNewEditorInfo.EditorComponent <> nil) then begin
if not (ofDoNotActiveSourceEditor in FFLags) then
if not (ofDoNotActivateSourceEditor in FFLags) then
SourceEditorManager.ShowActiveWindowOnTop(True);
exit(ChangeEditorPage);
end;