From 10dd2364ba1106378467e297d4fecda4f555120f Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Thu, 27 Dec 2018 03:43:21 -0200 Subject: [PATCH] [Desktop] Fix maximize button not being enabled on main menu --- packages/desktop/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/desktop/src/index.ts b/packages/desktop/src/index.ts index be3734622..241ebde84 100644 --- a/packages/desktop/src/index.ts +++ b/packages/desktop/src/index.ts @@ -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() }, },