[MM-38649] Put top bar in a BrowserView (#1758)
* [MM-38649] Tab bar as BrowserView POC * Fixes for Mac * Linux fixes * Lint fix * Make view full height * Fix for macOS getting stuck when dragging * Lint fix
This commit is contained in:
@@ -142,14 +142,7 @@ function createTemplate(config: Config) {
|
||||
return 'Ctrl+Shift+I';
|
||||
})(),
|
||||
click(item: Electron.MenuItem, focusedWindow?: WebContents) {
|
||||
if (focusedWindow) {
|
||||
// toggledevtools opens it in the last known position, so sometimes it goes below the browserview
|
||||
if (focusedWindow.isDevToolsOpened()) {
|
||||
focusedWindow.closeDevTools();
|
||||
} else {
|
||||
focusedWindow.openDevTools({mode: 'detach'});
|
||||
}
|
||||
}
|
||||
WindowManager.openAppWrapperDevTools(focusedWindow);
|
||||
},
|
||||
}, {
|
||||
label: 'Developer Tools for Current Tab',
|
||||
|
Reference in New Issue
Block a user