Skip to content

Commit cb2e042

Browse files
ra3orbladeclaude
andcommitted
fix: new tabs should not inherit pinned state from active tab (JS-8940)
Strip isPinned when creating a new tab via Cmd+T or "+" button so it opens as a regular tab even when the active tab is pinned. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e591f36 commit cb2e042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/js/menu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ class MenuManager {
240240
{ label: Util.translate('electronMenuNewWindow'), accelerator: this.getAccelerator('newWindow'), click: () => WindowManager.createMain({ isChild: true }) },
241241
{ label: Util.translate('electronMenuNewTab'), accelerator: this.getAccelerator('newTab'), click: () => {
242242
const activeView = Util.getActiveView(this.win);
243+
const { isPinned, ...data } = activeView?.data || {};
243244

244-
WindowManager.createTab(this.win, activeView?.data);
245+
WindowManager.createTab(this.win, data);
245246
}
246247
},
247248
{ label: Util.translate('electronMenuPrevTab'), accelerator: this.getAccelerator('prevTab'), click: () => WindowManager.prevTab(this.win) },

0 commit comments

Comments
 (0)