[Pkg-mozext-commits] [tabmixplus] 06/107: Don't style visited tab as unloaded

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:44 UTC 2015


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit ce39f2155c643b05dfed1775483904db317528ce
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Aug 25 19:19:24 2015 +0300

    Don't style visited tab as unloaded
---
 chrome/content/links/userInterface.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/chrome/content/links/userInterface.js b/chrome/content/links/userInterface.js
index a9c93ad..5ec9dc6 100644
--- a/chrome/content/links/userInterface.js
+++ b/chrome/content/links/userInterface.js
@@ -387,11 +387,13 @@ Tabmix.setTabStyle = function(aTab, boldChanged) {
   let isSelected = aTab.getAttribute(TabmixSvc.selectedAtt) == "true";
   // if pending tab is blank we don't style it as unload or unread
   if (!isSelected && Tabmix.prefs.getBoolPref("unloadedTab") &&
-      (aTab.hasAttribute("pending") || aTab.hasAttribute("tabmix_pending")))
-    style = TMP_SessionStore.isBlankPendingTab(aTab) ? "other" : "unloaded";
-  else if (!isSelected && Tabmix.prefs.getBoolPref("unreadTab") &&
-      !aTab.hasAttribute("visited") && !isTabEmpty(aTab))
+      (aTab.hasAttribute("pending") || aTab.hasAttribute("tabmix_pending"))) {
+    style = aTab.hasAttribute("visited") ||
+      TMP_SessionStore.isBlankPendingTab(aTab) ? "other" : "unloaded";
+  } else if (!isSelected && Tabmix.prefs.getBoolPref("unreadTab") &&
+      !aTab.hasAttribute("visited") && !isTabEmpty(aTab)) {
     style = "unread";
+  }
 
   let currentStyle = aTab.getAttribute("tabmix_tabState") || null;
   if (style != "unread" && style != "unloaded")

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



More information about the Pkg-mozext-commits mailing list