AlexTorresDev / custom-electron-titlebar

Custom electon title bar inpire on VS Code title bar
MIT License
866 stars 148 forks source link

Window Maximization button not change when window is maximized #235

Closed dylanZk1 closed 1 year ago

dylanZk1 commented 1 year ago

Describe the bug When the window is maximized, the button in the upper right corner that controls the window maximization does not change, and no maximization button is displayed.

To Reproduce Steps to reproduce the behavior:

  1. change window maximization at main.js, setting mainWindow.maximize(), BrowserWindow.maximize = true
  2. launch the electron app.
  3. See error

Expected behavior When the window is maximized, the button in the upper right corner that controls the window maximization could change

Screenshots error

Desktop