feat: open developer tool detach to prevent overlap

This commit is contained in:
linonetwo 2023-12-29 21:54:22 +08:00
parent fb6e895710
commit cf87bf7bef
3 changed files with 2 additions and 4 deletions

View file

@ -258,7 +258,7 @@ export class WorkspaceView implements IWorkspaceViewService {
{
label: () => i18n.t('Menu.DeveloperToolsActiveWorkspace'),
accelerator: 'CmdOrCtrl+Option+I',
click: async () => (await this.viewService.getActiveBrowserView())?.webContents?.openDevTools(),
click: async () => (await this.viewService.getActiveBrowserView())?.webContents?.openDevTools?.({ mode: 'detach' }),
enabled: hasWorkspaces,
},
]);