Skip to content

Commit

Permalink
[Desktop] Fix maximize button not being enabled on main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos committed Dec 27, 2018
1 parent 22b39ea commit 10dd236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/desktop/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,12 @@ function getWindowMenuItems() {
{
label: 'Maximize',
visible: !isMenuBarMode, // && mainWindow.isMaximizable(),
enabled: isCurrentWindow && !mainWindow.isMaximized(),
enabled: isCurrentWindow, // && !mainWindow.isMaximized(),
click() {
if (!mainWindow.isVisible()) {
mainWindow.show()
}

mainWindow.maximize()
},
},
Expand Down

0 comments on commit 10dd236

Please sign in to comment.