fix(electron): electron crash on leave fullscreen (#9314)
This commit is contained in:
@@ -153,6 +153,7 @@ export class MainWindowManager {
|
|||||||
|
|
||||||
const refreshBound = (timeout = 0) => {
|
const refreshBound = (timeout = 0) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (mainWindow.isDestroyed()) return;
|
||||||
// FIXME: workaround for theme bug in full screen mode
|
// FIXME: workaround for theme bug in full screen mode
|
||||||
const size = mainWindow.getSize();
|
const size = mainWindow.getSize();
|
||||||
mainWindow.setSize(size[0] + 1, size[1] + 1);
|
mainWindow.setSize(size[0] + 1, size[1] + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user