mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-05 15:43:11 +03:00
fix(electron): linux crash on exiting presentation mode (#6253)
This commit is contained in:
parent
6a0ab54e25
commit
d03c72a0a8
@ -127,10 +127,13 @@ async function createWindow(additionalArguments: string[]) {
|
||||
});
|
||||
|
||||
browserWindow.on('leave-full-screen', () => {
|
||||
// FIXME: workaround for theme bug in full screen mode
|
||||
const size = browserWindow.getSize();
|
||||
browserWindow.setSize(size[0] + 1, size[1] + 1);
|
||||
browserWindow.setSize(size[0], size[1]);
|
||||
// seems call this too soon may cause the app to crash
|
||||
setTimeout(() => {
|
||||
// FIXME: workaround for theme bug in full screen mode
|
||||
const size = browserWindow.getSize();
|
||||
browserWindow.setSize(size[0] + 1, size[1] + 1);
|
||||
browserWindow.setSize(size[0], size[1]);
|
||||
});
|
||||
uiSubjects.onMaximized.next(false);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user