Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Ensure new windows have non-pinned tab active
Browse files Browse the repository at this point in the history
Not pinned tab
Fix #13797
  • Loading branch information
petemill committed Apr 11, 2018
1 parent b6afd40 commit 96fdb81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/stores/windowStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const newFrame = (state, frameOpts) => {
}
}
frameOpts.partitionNumber = frameOpts.partitionNumber || 0

const isPinned = frameOpts.isPinned
const active = frameOpts.active
delete frameOpts.active
let openInForeground = active
Expand Down Expand Up @@ -158,7 +158,7 @@ const newFrame = (state, frameOpts) => {
nextKey, frameOpts.partitionNumber, openInForeground, insertionIndex))
state = frameStateUtil.updateFramesInternalIndex(state, insertionIndex)

if (openInForeground) {
if (openInForeground && !isPinned) {
const tabId = frameOpts.tabId
const frame = frameStateUtil.getFrameByTabId(state, tabId)
state = frameStateUtil.updateTabPageIndex(state, tabId)
Expand Down

0 comments on commit 96fdb81

Please sign in to comment.