[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) {
|
||||
focused.restore();
|
||||
}
|
||||
if (focused?.isFullScreen()) {
|
||||
focused.setFullScreen(false);
|
||||
}
|
||||
}
|
||||
|
||||
export function reload() {
|
||||
|
@@ -346,7 +346,7 @@ export default class MainPage extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
let maxButton;
|
||||
if (this.state.maximized) {
|
||||
if (this.state.maximized || this.state.fullScreen) {
|
||||
maxButton = (
|
||||
<div
|
||||
className='button restore-button'
|
||||
|
Reference in New Issue
Block a user