Skip to content

Commit cdd096f

Browse files
author
p01
committed
reset selectedResourceID upon switching debugging context
no duplicate resource highligh
1 parent 321ea74 commit cdd096f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/resource-manager/resource_service.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ cls.ResourceManagerService = function(view, network_logger)
155155
this._collapsedHash = {};
156156

157157
delete this._context;
158+
delete this._selectedResourceID
158159
this._view.update();
159160
}.bind(this);
160161

@@ -201,6 +202,9 @@ cls.ResourceManagerService = function(view, network_logger)
201202

202203
this.highlight_resource = function(id)
203204
{
205+
if (this._selectedResourceID == id)
206+
return;
207+
204208
this._selectedResourceID = id;
205209

206210
if (this._context)

0 commit comments

Comments
 (0)