Skip to content

Commit

Permalink
fix: reader menu is closed automatically when switching to fullscreen…
Browse files Browse the repository at this point in the history
… (PR #1701 Fixes #1699)
  • Loading branch information
panaC authored Jun 8, 2022
1 parent 73ed5d0 commit c3d4f57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/reader/components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,10 @@ class Reader extends React.Component<IProps, IState> {
private handleFullscreenClick() {
this.props.toggleFullscreen(!this.state.fullscreen);
this.setState({ fullscreen: !this.state.fullscreen });

if (this.state.menuOpen) { // fixes https://github.com/edrlab/thorium-reader/issues/1699
this.handleMenuButtonClick();
}
}

private handleSettingsClick(openedSectionSettings?: number | undefined) {
Expand Down

0 comments on commit c3d4f57

Please sign in to comment.