[Pkg-mozext-commits] [wot] 14/226: Create the toolbar button once though.

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:29 UTC 2015


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

taffit pushed a commit to branch master
in repository wot.

commit f412f65ef2c7b6f95812e3f02cf74dbe197fc88a
Author: Sami Tolvanen <sami at mywot.com>
Date:   Wed Feb 29 10:45:41 2012 +0200

    Create the toolbar button once though.
---
 content/config.js | 1 +
 content/ui.js     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/content/config.js b/content/config.js
index bfc667d..dd1e7e1 100644
--- a/content/config.js
+++ b/content/config.js
@@ -206,6 +206,7 @@ const WOT_UPDATE_PATH = "update/";
 /* Preferences and defaults */
 const wot_prefs_bool = [
 	[ "accessible",					false ],
+	[ "button_created",				false ],
 	[ "create_button",				false ],
 	[ "enabled",					true  ],
 	[ "install_search",				false ],
diff --git a/content/ui.js b/content/ui.js
index 701b180..50ad96b 100644
--- a/content/ui.js
+++ b/content/ui.js
@@ -209,7 +209,8 @@ var wot_ui =
 	{
 		try {
 			/* Toolbar */
-			if (wot_prefs.create_button) {
+			if (!wot_prefs.button_created || wot_prefs.create_button) {
+				wot_prefs.setBool("button_created", true);
 				this.show_toolbar_button("wot-button", "urlbar-container");
 			}
 

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



More information about the Pkg-mozext-commits mailing list