[MM-59252] Fix resizing app when welcome screen is open on macOS, force button to always appear on welcome screen (#3112)

This commit is contained in:
Devin Binnie
2024-07-29 13:23:57 -04:00
committed by GitHub
parent e68d97e578
commit b2cd2dc60d
4 changed files with 10 additions and 1 deletions

View File

@@ -36,6 +36,12 @@ function WelcomeScreen({
useEffect(() => {
setShowContent(true);
// Let the main process know when the window has finished resizing
// This is to reduce the amount of white box that happens when expand the BrowserView
window.addEventListener('resize', () => {
window.desktop.viewFinishedResizing();
});
}, []);
const slides = useMemo(() => [