Skip to content

Commit

Permalink
Add extra debug logs at window frame open and close callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Basssiiie committed May 21, 2024
1 parent 01b068b commit 57816d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows/baseWindowControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export abstract class BaseWindowControl implements WindowTemplate, ParentWindow

protected _open(description: WindowDesc, binder: WindowBinder | null): void
{
Log.debug("BaseWindowControl.open()");
this._layout(description, this._descriptionWidgetMap);
setWindowPosition(description, this._position);

Expand All @@ -242,6 +243,7 @@ export abstract class BaseWindowControl implements WindowTemplate, ParentWindow

private _close(): void
{
Log.debug("BaseWindowControl.close()");
this._invoke(frame => frame.close());

const binder = this._windowBinder;
Expand Down
2 changes: 2 additions & 0 deletions src/windows/frames/frameControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class FrameControl implements FrameContext, ParentControl<FramePosition,

open(window: Window, widgets: WidgetMap): void
{
Log.debug("FrameControl.open(", widgets.length, "widgets )");
setAxisSizeIfNumber(window, Axis.Horizontal, this.width);
setAxisSizeIfNumber(window, Axis.Vertical, this.height);

Expand All @@ -119,6 +120,7 @@ export class FrameControl implements FrameContext, ParentControl<FramePosition,

close(): void
{
Log.debug("FrameControl.close()");
invoke(this._close, this);

const binder = this._binder;
Expand Down
1 change: 1 addition & 0 deletions src/windows/tabs/tabWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ class TabWindowControl extends BaseWindowControl

protected override _open(description: WindowDesc, binder: WindowBinder | null): void
{
Log.debug("TabWindow.open( tab", this._selectedTab, ")");
if (this._flags & TabWindowFlags.HasTabs)
{
this._openTab(description, this._getActiveTab());
Expand Down

0 comments on commit 57816d4

Please sign in to comment.