fix: open dev tools on main window when editor window is ready

This commit is contained in:
Hachi-R 2025-01-30 10:46:18 -03:00
parent 6a6e3ca7da
commit 4758b8c05a

View File

@ -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();