From ce5f1a35d30d4dd9277e5e8cc1d0872a537bd92a Mon Sep 17 00:00:00 2001 From: George Karagkiaouris Date: Wed, 19 Aug 2020 09:54:10 -0400 Subject: [PATCH] Fix export history menu item and editor format size --- main/menus.js | 8 ++++---- renderer/components/editor/options/right.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/menus.js b/main/menus.js index 93b1054af..7d44c7800 100644 --- a/main/menus.js +++ b/main/menus.js @@ -88,12 +88,12 @@ const aboutItem = { let isExportsItemEnabled = false; -const exportHistoryItem = { +const getExportHistoryItem = () => ({ label: 'Export History', click: openExportsWindow, enabled: isExportsItemEnabled, id: 'exports' -}; +}); const preferencesItem = { label: 'Preferences…', @@ -163,7 +163,7 @@ const getCogMenuTemplate = async () => [ type: 'separator' }, openFileItem, - exportHistoryItem, + getExportHistoryItem(), { type: 'separator' }, @@ -221,7 +221,7 @@ const appMenuTemplate = [ { type: 'separator' }, - exportHistoryItem, + getExportHistoryItem(), { type: 'separator' }, diff --git a/renderer/components/editor/options/right.js b/renderer/components/editor/options/right.js index ded0b942a..20203722e 100644 --- a/renderer/components/editor/options/right.js +++ b/renderer/components/editor/options/right.js @@ -111,7 +111,7 @@ class RightOptions extends React.Component { .format { height: 24px; - width: 96px; + width: 104px; margin-right: 8px; }