commit cdfba9e3bd586bf2e761ddf171f6ed2769a7ce85 Author: Sukhbir Singh sukhbir@torproject.org Date: Thu Aug 30 22:22:03 2018 -0400
Restrict status bar update to TorBirdy
A user reported that the TorBirdy status bar is updated if they toggle the state of themes (enable/disable). This commit fixes that issue by restricting the status bar update to TorBirdy. --- components/torbirdy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/torbirdy.js b/components/torbirdy.js index 6c2be57..077b218 100644 --- a/components/torbirdy.js +++ b/components/torbirdy.js @@ -480,16 +480,16 @@ TorBirdy.prototype = { },
onUninstalling: function(addon, needsRestart) { - this.onStateChange(); if (addon.id == TB_ID) { + this.onStateChange(); this._uninstall = true; this.resetUserPrefs(); } },
onOperationCancelled: function(addon) { - this.onStateChange(); if (addon.id == TB_ID) { + this.onStateChange(); this._uninstall = false; this.setPrefs(); }