* Revert "[MM-38649] Put top bar in a BrowserView (#1758)"
This reverts commit c914903df9
.
* [MM-38936] Upgrade to Electron 14.1.0
This commit is contained in:
@@ -142,7 +142,14 @@ function createTemplate(config: Config) {
|
||||
return 'Ctrl+Shift+I';
|
||||
})(),
|
||||
click(item: Electron.MenuItem, focusedWindow?: WebContents) {
|
||||
WindowManager.openAppWrapperDevTools(focusedWindow);
|
||||
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'});
|
||||
}
|
||||
}
|
||||
},
|
||||
}, {
|
||||
label: 'Developer Tools for Current Tab',
|
||||
|
Reference in New Issue
Block a user