mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
fix(electron): electron crash on leave fullscreen (#9314)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user