From 30c41494e8b71e770a4b335c8c91b31d50d3911c Mon Sep 17 00:00:00 2001 From: n7800 <14154601-n7800@users.noreply.gitlab.com> Date: Fri, 20 Jun 2025 11:03:25 +0500 Subject: [PATCH] Cody/Dictionary: Remember window layout --- components/codetools/ide/codyidentifiersdlg.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/codetools/ide/codyidentifiersdlg.pas b/components/codetools/ide/codyidentifiersdlg.pas index 279b4bccd5..62248416cc 100644 --- a/components/codetools/ide/codyidentifiersdlg.pas +++ b/components/codetools/ide/codyidentifiersdlg.pas @@ -41,8 +41,8 @@ uses // LCL Forms, Controls, Dialogs, ButtonPanel, StdCtrls, ExtCtrls, LCLType, Buttons, Menus, // IdeIntf - PackageIntf, LazIDEIntf, SrcEditorIntf, ProjectIntf, - CompOptsIntf, IDEDialogs, IDEMsgIntf, IDEExternToolIntf, ProjPackIntf, + PackageIntf, LazIDEIntf, SrcEditorIntf, ProjectIntf, CompOptsIntf, IDEDialogs, + IDEMsgIntf, IDEWindowIntf, IDEExternToolIntf, ProjPackIntf, // Codetools CodeCache, BasicCodeTools, CustomCodeTool, CodeToolManager, UnitDictionary, CodeTree, LinkScanner, DefineTemplates, FindDeclarationTool, @@ -969,6 +969,7 @@ begin CodyOptions.PreferImplementationUsesSection:= AddToImplementationUsesCheckBox.Checked; FreeAndNil(FItems); + IDEDialogLayoutList.SaveLayout(self); end; procedure TCodyIdentifiersDlg.FormCreate(Sender: TObject); @@ -998,6 +999,7 @@ begin ContainsRadioButton.Checked:=false; ContainsRadioButton.Caption:=crsContains; ContainsRadioButton.Hint:=crsShowOnlyIdentifiersContainingFilterText; + IDEDialogLayoutList.ApplyLayout(self, 550, 550); end; procedure TCodyIdentifiersDlg.HideOtherProjectsCheckBoxChange(Sender: TObject);