diff --git a/src/renderer/views/app/store/tabs.ts b/src/renderer/views/app/store/tabs.ts index 0ac4e8357..23270a46d 100644 --- a/src/renderer/views/app/store/tabs.ts +++ b/src/renderer/views/app/store/tabs.ts @@ -506,7 +506,7 @@ export class TabsStore { for (let i = index - 1; i >= 0; i--) { const tab = tabs[i]; - if (callingTab.isPinned && callingTab.isPinned && tab.isPinned) break; + if (callingTab.isPinned && !tab.isPinned) break; const { tabGroup } = tab; @@ -533,7 +533,7 @@ export class TabsStore { for (let i = index + 1; i < tabs.length; i++) { const tab = tabs[i]; - if (callingTab.isPinned && callingTab.isPinned && tab.isPinned) break; + if (callingTab.isPinned && !tab.isPinned) break; const { tabGroup } = tab;