[MM-38577] Allow exit of full screen mode using the restore button on Windows (#1744)
This commit is contained in:
@@ -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() {
|
||||||
|
@@ -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'
|
||||||
|
Reference in New Issue
Block a user