fix(electron): electron crash on leave fullscreen (#9314)

This commit is contained in:
pengx17
2024-12-26 01:55:07 +00:00
parent 2ffd0e561c
commit 70d9cc6b01

View File

@@ -153,6 +153,7 @@ export class MainWindowManager {
const refreshBound = (timeout = 0) => {
setTimeout(() => {
if (mainWindow.isDestroyed()) return;
// FIXME: workaround for theme bug in full screen mode
const size = mainWindow.getSize();
mainWindow.setSize(size[0] + 1, size[1] + 1);