#Is there a way to disable closing of DevTool?

2 messages · Page 1 of 1 (latest)

grand jewel
#

Is there a way to disable the closing of DevTool? If not, is there a way to know when the user closes the devtool?

Is there a way to remove the close button or the entire tool bar for the devtool?

grand jewel
#

I found a way to detect the devtool close:

  mainWindow.webContents.on("devtools-closed", () => {
    mainWindow.webContents.openDevTools();
  });

But this doesn't re-open the devtool. Why is it so 🤔