Fix black screen on macOS after maximizing LBRY and then closing #1235

Merged
miikkatu merged 1 commit from fix-black-screen-after-closing-window into master 2018-04-02 22:19:47 +02:00
Showing only changes of commit dda2b72ce0 - Show all commits

View file

@ -78,7 +78,14 @@ export default appState => {
window.on('close', event => {
if (!appState.isQuitting && !appState.autoUpdateAccepted) {
event.preventDefault();
window.hide();
if (window.isFullScreen()) {
window.once('leave-full-screen', () => {
window.hide();
});
window.setFullScreen(false);
} else {
window.hide();
}
}
});