mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 23:35:57 +02:00
IDE/ProjectInspector: Hide project name and build mode in window title when docking. Issue #39418
This commit is contained in:
parent
6e0c2e0095
commit
553af58124
@ -16,6 +16,7 @@ object ProjectInspectorForm: TProjectInspectorForm
|
||||
OnDestroy = FormDestroy
|
||||
OnDropFiles = FormDropFiles
|
||||
OnResize = FormResize
|
||||
OnShow = FormShow
|
||||
object ItemsTreeView: TTreeView
|
||||
Left = 0
|
||||
Height = 261
|
||||
|
@ -149,6 +149,7 @@ type
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of String);
|
||||
procedure FormResize(Sender: TObject);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure ItemsPopupMenuPopup(Sender: TObject);
|
||||
procedure ItemsTreeViewAdvancedCustomDrawItem(Sender: TCustomTreeView;
|
||||
Node: TTreeNode; {%H-}State: TCustomDrawState; Stage: TCustomDrawStage;
|
||||
@ -909,6 +910,11 @@ begin
|
||||
PropsGroupBox.Constraints.MaxHeight := self.Height - FilterPanel.Height - ToolBar.Height - 20;
|
||||
end;
|
||||
|
||||
procedure TProjectInspectorForm.FormShow(Sender: TObject);
|
||||
begin
|
||||
UpdateTitle; // update title on dock/undock
|
||||
end;
|
||||
|
||||
procedure TProjectInspectorForm.ItemsPopupMenuPopup(Sender: TObject);
|
||||
|
||||
procedure SetItem(Item: TIDEMenuCommand; AnOnClick: TNotifyEvent;
|
||||
@ -1802,7 +1808,9 @@ var
|
||||
begin
|
||||
if not CanUpdate(pefNeedUpdateTitle,Immediately) then exit;
|
||||
Icon.Clear;
|
||||
if LazProject=nil then
|
||||
if (LazProject = nil) or
|
||||
(assigned(HostDockSite) and assigned(HostDockSite.Parent)) // is docked
|
||||
then
|
||||
Caption:=lisMenuProjectInspector
|
||||
else begin
|
||||
NewCaption:=LazProject.GetTitle;
|
||||
|
Loading…
Reference in New Issue
Block a user