[Pkg-mozext-commits] [nosquint] 13/13: If hideStatus pref is not false, show addon bar on load

David Prévot taffit at moszumanska.debian.org
Tue Apr 28 01:41:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 2.1.7
in repository nosquint.

commit 9d32d0d1c87342e4e5f990ca5cfecf6a00f0eb1d
Author: Jason Tackaberry <tack at urandom.ca>
Date:   Sun Mar 31 20:42:42 2013 -0400

    If hideStatus pref is not false, show addon bar on load
---
 src/content/browser.js | 3 +++
 src/content/prefs.js   | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/content/browser.js b/src/content/browser.js
index e148539..9b1570d 100644
--- a/src/content/browser.js
+++ b/src/content/browser.js
@@ -32,6 +32,9 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
 
         this.hookZoomButtonsForReset();
         NoSquint.prefs.checkVersionChange();
+
+        if (!NSQ.prefs.hideStatus)
+            this.enableAddonBar();
     };
 
     this.destroy = function() {
diff --git a/src/content/prefs.js b/src/content/prefs.js
index df70375..20f5149 100644
--- a/src/content/prefs.js
+++ b/src/content/prefs.js
@@ -239,9 +239,11 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
                 foreachNSQ(function(NSQ) {
                     if (NSQ.browser) {
                         $('nosquint-status').hidden = hideStatus;
-                        if (!hideStatus)
+                        if (!hideStatus) {
                             // Status now being shown; update it to reflect current values.
                             NSQ.browser.queueUpdateStatus();
+                            NSQ.browser.enableAddonBar();
+                        }
                     }
                 });
                 break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nosquint.git



More information about the Pkg-mozext-commits mailing list