[Pkg-mozext-commits] [tabmixplus] 27/61: When dropping a tab from another window into pinned tabs area make the tab pinned
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:19 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 d6ad1ef55f59bf7bd18a82c4c9c073bb7e4a640b
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Jul 27 21:46:17 2015 +0300
When dropping a tab from another window into pinned tabs area make the tab pinned
---
chrome/content/minit/minit.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 05e8a70..a2f9139 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -399,7 +399,11 @@ var TMP_tabDNDObserver = {
// make sure it has a docshell
newBrowser.docShell; // jshint ignore:line
+ let numPinned = gBrowser._numPinnedTabs;
+ if (newIndex < numPinned || draggedTab.pinned && newIndex == numPinned)
+ gBrowser.pinTab(newTab);
gBrowser.moveTabTo(newTab, newIndex + left_right);
+
gBrowser.selectedTab = newTab;
gBrowser.swapBrowsersAndCloseOther(newTab, draggedTab);
gBrowser.updateCurrentBrowser(true);
--
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