Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
fix: moving pinned tabs (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Jun 23, 2020
1 parent daa8004 commit 5776eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/app/store/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 5776eb5

Please sign in to comment.