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 e987e50 + e71db63 commit 314e3f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addon/actions/snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function openSnapshotWindow(snapshot, winId) {
for (let i = 0; i < tabs.length; i++) {
let tab = tabs[i]
let ctr = containers[tab.ctr]
let ctrId = ctr ? ctr.newId : undefined
let ctrId = ctr ? ctr.newId : DEFAULT_CTX_ID

parents[tab.lvl] = tab.id

Expand Down
2 changes: 1 addition & 1 deletion addon/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export const MENU_OPTIONS = {
}

for (let c of Object.values(state.containers)) {
if (firstNode.cookieStoreId === c.cookieStoreId) continue
if (firstNode.cookieStoreId === c.id) continue
opts.push({
label: translate('menu.tab.reopen_in_') + `||${c.color}>>${c.name}`,
nativeLabel: translate('menu.tab.reopen_in_') + c.name,
Expand Down
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.3",
"version": "4.0.4",
"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.3",
"version": "4.0.4",
"description": "Manage your tabs and bookmarks in sidebar",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/page.settings/components/snapshots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function normalizeSnapshot(snapshot) {
// Tabs
for (let tab of snapshot.windows[winId].items) {
if (panel.id !== tab.panel) continue
if (tab.ctr !== DEFAULT_CTR.id) {
if (tab.ctr !== DEFAULT_CTR.id && snapshot.containersById[tab.ctr]) {
tab.ctrIcon = snapshot.containersById[tab.ctr].icon
tab.ctrColor = snapshot.containersById[tab.ctr].color
}
Expand Down

0 comments on commit 314e3f9

Please sign in to comment.