Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/View.js

Issue 2413023002: DevTools: restore selected panel upon devtools reload. (Closed)
Patch Set: same w/ removed code Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Panel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/View.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/View.js b/third_party/WebKit/Source/devtools/front_end/ui/View.js
index c938772f79e058868580bebbe7fd6f90b400bd3f..188181cc758cab00fe33d9042dd23f4b6da3f55f 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/View.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/View.js
@@ -681,14 +681,7 @@ WebInspector.ViewManager._TabbedLocation.prototype = {
else if (this._closeableTabSetting.get()[id])
this._appendTab(view);
}
- },
-
- wasShown: function()
- {
- if (this._wasAlreadyShown || !this._lastSelectedTabSetting)
- return;
- this._wasAlreadyShown = true;
- if (this._tabbedPane.hasTab(this._lastSelectedTabSetting.get()))
+ if (this._lastSelectedTabSetting && this._tabbedPane.hasTab(this._lastSelectedTabSetting.get()))
this._tabbedPane.selectTab(this._lastSelectedTabSetting.get());
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Panel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698