Disable unmaximize and problem with BrowserWindow.maximize()


Hello guys! Are you all right?

I have two problems and I would like the help of you masters of the universe.

  1. How disabling the ‘unmaximize’, that is, for the screen to be only maximized or minimized?
  2. When I use ‘BrowserWindow.maximize ()’, before the maximize screen it appears black, does anyone know how to solve this? See the problem on a screen.

Note: I’m using the latest version of electron, I removed the size of the screen when I created it and the problem still continues.

Sorry for bad english and thank you very much.