[MM-38577] Allow exit of full screen mode using the restore button on Windows (#1744)

This commit is contained in:
Devin Binnie
2021-09-22 09:42:26 -04:00
committed by GitHub
parent b09f1e23dc
commit 2f6b7f82c4
2 changed files with 4 additions and 1 deletions

View File

@@ -466,6 +466,9 @@ export function restore() {
if (focused) { if (focused) {
focused.restore(); focused.restore();
} }
if (focused?.isFullScreen()) {
focused.setFullScreen(false);
}
} }
export function reload() { export function reload() {

View File

@@ -346,7 +346,7 @@ export default class MainPage extends React.PureComponent<Props, State> {
} }
let maxButton; let maxButton;
if (this.state.maximized) { if (this.state.maximized || this.state.fullScreen) {
maxButton = ( maxButton = (
<div <div
className='button restore-button' className='button restore-button'