Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
quick fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed May 4, 2017
1 parent 7dcb919 commit 8e40d62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/components/navigation/menuBarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MenuBarItem extends React.Component {
}

onMouseOver (e) {
if (!this.props.selected) {
if (typeof this.props.selectedIndex === 'number' && !this.props.selected) {
this.onClick(e)
}
}
Expand All @@ -58,6 +58,7 @@ class MenuBarItem extends React.Component {
// used in other functions
props.submenu = template.get('submenu') && template.get('submenu').toJS()
props.lastFocusedSelector = currentWindow.getIn(['ui', 'menubar', 'lastFocusedSelector'])
props.selectedIndex = selectedIndex

return Object.assign({}, ownProps, props)
}
Expand Down

0 comments on commit 8e40d62

Please sign in to comment.