fix: black screen on macOS after maximizing LBRY and then closing (#1235)
This commit is contained in:
parent
2fa552a2c0
commit
0ad2b3c7f9
1 changed files with 8 additions and 1 deletions
|
@ -78,7 +78,14 @@ export default appState => {
|
||||||
window.on('close', event => {
|
window.on('close', event => {
|
||||||
if (!appState.isQuitting && !appState.autoUpdateAccepted) {
|
if (!appState.isQuitting && !appState.autoUpdateAccepted) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
if (window.isFullScreen()) {
|
||||||
|
window.once('leave-full-screen', () => {
|
||||||
window.hide();
|
window.hide();
|
||||||
|
});
|
||||||
|
window.setFullScreen(false);
|
||||||
|
} else {
|
||||||
|
window.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue