Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Dec 31, 2019
2 parents ca4788a + 0d79edf commit e987e50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"author": "mbnuqw",
"name": "__MSG_ExtName__",
"version": "4.0.2",
"version": "4.0.3",
"default_locale": "en",
"description": "__MSG_ExtDesc__",
"homepage_url": "https://github.com/mbnuqw/sidebery",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sidebery",
"version": "4.0.2",
"version": "4.0.3",
"description": "Manage your tabs and bookmarks in sidebar",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/actions/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ function activateLastActiveTabOf(panelIndex) {
if (!p || !p.tabs || !p.tabs.length) return

let tab = this.state.tabsMap[p.lastActiveTab]
if (!tab || tab.panelId !== p.id) tab = p.tabs[p.tabs.length - 1]
if (!tab || tab.panelId !== p.id) tab = p.tabs[0]
if (tab) browser.tabs.update(tab.id, { active: true })
}

Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/handlers/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function onTabCreated(tab) {
tab.openerTabId = this.actions.getParentForNewTab(panel, tab)
}
if (index === undefined) {
if (panel.moveTabCtx !== 'none') {
if (panel.moveTabCtx !== 'none' && tab.openerTabId === undefined) {
index = panel.tabs.length ? panel.endIndex + 1 : panel.endIndex
} else {
index = tab.index
Expand Down

0 comments on commit e987e50

Please sign in to comment.