Commit 5ea7e168 authored by Pavel Feldman's avatar Pavel Feldman Committed by Commit Bot

DevTools: allow hiding threads sidebar via module configuration.

Change-Id: I43c98ef335c76b0bbc5276742fdfe791c40f3a7d
Reviewed-on: https://chromium-review.googlesource.com/c/1357009Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612758}
parent ba76b5ba
...@@ -177,14 +177,13 @@ Sources.SourcesPanel = class extends UI.Panel { ...@@ -177,14 +177,13 @@ Sources.SourcesPanel = class extends UI.Panel {
_showThreadsIfNeeded() { _showThreadsIfNeeded() {
if (Sources.ThreadsSidebarPane.shouldBeShown() && !this._threadsSidebarPane) { if (Sources.ThreadsSidebarPane.shouldBeShown() && !this._threadsSidebarPane) {
this._threadsSidebarPane = /** @type {!UI.View} */ (UI.viewManager.view('sources.threads')); this._threadsSidebarPane = /** @type {!UI.View} */ (UI.viewManager.view('sources.threads'));
if (this._sidebarPaneStack) { if (this._sidebarPaneStack && this._threadsSidebarPane) {
this._sidebarPaneStack.showView( this._sidebarPaneStack.showView(
this._threadsSidebarPane, this._splitWidget.isVertical() ? this._watchSidebarPane : this._callstackPane); this._threadsSidebarPane, this._splitWidget.isVertical() ? this._watchSidebarPane : this._callstackPane);
} }
} }
} }
/** /**
* @param {?SDK.Target} target * @param {?SDK.Target} target
*/ */
......
...@@ -728,7 +728,8 @@ ...@@ -728,7 +728,8 @@
"id": "sources.threads", "id": "sources.threads",
"title": "Threads", "title": "Threads",
"persistence": "permanent", "persistence": "permanent",
"className": "Sources.ThreadsSidebarPane" "className": "Sources.ThreadsSidebarPane",
"condition": "!sources.hide_thread_sidebar"
}, },
{ {
"type": "view", "type": "view",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment