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

Commit

Permalink
Fixes window isFocused function that was not updated
Browse files Browse the repository at this point in the history
Auditors: @bbondy

Test Plan:
- try to run brave
- brave should start normally
  • Loading branch information
NejcZdovc committed Sep 17, 2017
1 parent 5938bfd commit 77335d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/renderer/components/navigation/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Navigator extends React.Component {
return
}

return !isMaximized()
return !this.props.isMaximized
? windowActions.shouldMaximize(getCurrentWindowId())
: windowActions.shouldMinimize(getCurrentWindowId())
}
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/components/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Window extends React.Component {

mergeProps (state, ownProps) {
const props = {}
props.isFocused = isFocused()
props.isFocused = isFocused(state)

return props
}
Expand Down

0 comments on commit 77335d4

Please sign in to comment.