Skip to content

Commit 34b3c10

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Enable native tabbed window merging (macOS) (#55396)
Summary: Pull Request resolved: #55396 Changelog: [General][Changed] - **React Native DevTools**: Enable native macOS window merging Reviewed By: motiz88 Differential Revision: D92154327 fbshipit-source-id: 1592f459584afc511167c1e7bc91be59a3b5c249
1 parent 96c97e0 commit 34b3c10

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/debugger-shell/src/electron/MainInstanceEntryPoint.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function handleLaunchArgs(argv: string[]) {
6868
},
6969
// Icon for Linux
7070
icon: path.join(__dirname, 'resources', 'icon.png'),
71+
// Enable tabs for this window (macOS 10.12+)
72+
tabbingIdentifier: 'main',
7173
});
7274
// Auto-hide the Windows/Linux menu bar
7375
frontendWindow.setMenuBarVisibility(false);

packages/debugger-shell/src/electron/index.flow.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const {app} = require('electron') as any;
2020
app.setName(pkg.productName ?? pkg.name);
2121
app.setVersion(pkg.version + '-' + buildInfo.revision);
2222

23+
// Enable automatic tab support (macOS 10.12+)
24+
app.commandLine.appendSwitch('enable-features', 'TabStrip');
25+
2326
// Handle global command line arguments which don't require a window
2427
// or the single instance lock to be held.
2528
const {

0 commit comments

Comments
 (0)