Commit fc05d63a authored by anonym's avatar anonym Committed by Georg Koppen
Browse files

Bug 15915: Hide circuit display if it is disabled.

If extensions.torbutton.display_circuit = false from the start, then
myController will never be set, so when we call stop() we won't call
syncDisplayWithSelectedTab(false) to hide the circuit display.
parent 827995a1
......@@ -315,8 +315,8 @@ let setupDisplay = function (host, port, password, enablePrefName) {
let myController = null,
stopCollectingIsolationData = null,
stop = function() {
syncDisplayWithSelectedTab(false);
if (myController) {
syncDisplayWithSelectedTab(false);
if (stopCollectingIsolationData) {
stopCollectingIsolationData();
}
......
Supports Markdown
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