[Pkg-mozext-commits] [tabmixplus] 114/147: Reset treeStyleTab data before restoring session that will overwrite current window

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:43 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 553dfbf23212d48f699a55d5bc95e621d77f249b
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Mar 19 11:23:46 2017 +0200

    Reset treeStyleTab data before restoring session that will overwrite current window
---
 chrome/content/session/session.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index dd8f693..7d8d60a 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -3251,6 +3251,10 @@ TabmixSessionManager = {
 
     var newIndex, aTab, loadOnStartup = [];
     if (newtabsCount > 0 && overwrite) {
+      // reset treeStyleTab data
+      if (Tabmix.extensions.treeStyleTab) {
+        gBrowser.treeStyleTab.resetAllTabs(true);
+      }
       // unpinned tabs reorder tabs, so we loop backward
       for (let i = gBrowser.tabs.length - 1; i >= 0; i--) {
         this.resetTab(gBrowser.tabs[i]);

-- 
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