From 4f0ec7cefaf93a418619651f65b5d94ad020960b Mon Sep 17 00:00:00 2001 From: rich2014 Date: Mon, 4 Dec 2023 13:33:30 +0800 Subject: [PATCH] IDE: fix typo about ofDoNotActivateSourceEditor --- components/ideintf/lazideintf.pas | 2 +- ide/main.pp | 2 +- ide/sourcefilemanager.pas | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ideintf/lazideintf.pas b/components/ideintf/lazideintf.pas index 131f0e3f91..ab746e4fa6 100644 --- a/components/ideintf/lazideintf.pas +++ b/components/ideintf/lazideintf.pas @@ -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; diff --git a/ide/main.pp b/ide/main.pp index 1a14a64bef..92eb05361d 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -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, diff --git a/ide/sourcefilemanager.pas b/ide/sourcefilemanager.pas index 948de1fc4f..399cc38321 100644 --- a/ide/sourcefilemanager.pas +++ b/ide/sourcefilemanager.pas @@ -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;