mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: open dev tools on main window when editor window is ready
This commit is contained in:
parent
6a6e3ca7da
commit
4758b8c05a
1 changed files with 1 additions and 2 deletions
|
@ -244,10 +244,9 @@ export class WindowManager {
|
|||
|
||||
editorWindow.once("ready-to-show", () => {
|
||||
editorWindow.show();
|
||||
WindowManager.mainWindow?.webContents.openDevTools();
|
||||
});
|
||||
|
||||
WindowManager.mainWindow?.webContents.openDevTools();
|
||||
|
||||
editorWindow.webContents.on("before-input-event", (event, input) => {
|
||||
if (input.key === "F12") {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue