mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 09:13:57 +00:00
fix: open dev tools on main window when editor window is ready
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user