Skip to content

Commit 32b1365

Browse files
author
p01
committed
DFL-3575 discard closed windows, use the title from the WindowInfo in the resource tree
1 parent 71bbff9 commit 32b1365

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/resource-manager/resource_service.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ cls.ResourceManagerService = function(view, network_logger)
286286
this._network_logger.addListener("window-context-added", this._update_bound);
287287
this._network_logger.addListener("window-context-removed", this._update_bound);
288288

289+
window.services["window-manager"].addListener('windowclosed', this._update_bound );
290+
289291
this._reset();
290292
};
291293

src/resource-manager/resource_templates.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,18 @@ templates.resource_tree =
7070

7171
window:function(context, w)
7272
{
73+
var windowInfo = window.window_manager_data.get_window(w.id);
74+
if (!windowInfo)
75+
return [];
76+
7377
var extras = this._expandCollapseExtras( context, String(w.id) );
7478

7579
var tpl =
7680
['li',
7781
['h2',
7882
extras.tpl.button,
7983
['span',
80-
'windowID '+w.id,
84+
windowInfo.title,
8185
'class','resource-tree-window-label'
8286
],
8387
'class','resource-tree-window'

0 commit comments

Comments
 (0)