Skip to content

Commit

Permalink
Fix export history menu item and editor format size
Browse files Browse the repository at this point in the history
  • Loading branch information
karaggeorge authored and sindresorhus committed Aug 19, 2020
1 parent aa8ddaf commit ce5f1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions main/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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…',
Expand Down Expand Up @@ -163,7 +163,7 @@ const getCogMenuTemplate = async () => [
type: 'separator'
},
openFileItem,
exportHistoryItem,
getExportHistoryItem(),
{
type: 'separator'
},
Expand Down Expand Up @@ -221,7 +221,7 @@ const appMenuTemplate = [
{
type: 'separator'
},
exportHistoryItem,
getExportHistoryItem(),
{
type: 'separator'
},
Expand Down
2 changes: 1 addition & 1 deletion renderer/components/editor/options/right.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class RightOptions extends React.Component {
.format {
height: 24px;
width: 96px;
width: 104px;
margin-right: 8px;
}
Expand Down

0 comments on commit ce5f1a3

Please sign in to comment.