fix: single ESC exits both immersive overlay and window fullscreen

closeFullScreen() now also exits window fullscreen so the user
doesn't need to press ESC twice.

cc
This commit is contained in:
vicrodh committed 2026-03-31 15:42:41 -06:00
1 parent b315b23b61
commit 18403bba73
1 file changed
+3
+3
View File
@@ -149,6 +149,9 @@ export function openFullScreen(): void {
export function closeFullScreen(): void {
isFullScreenOpen = false;
getCurrentWindow().isFullscreen().then(fs => {
if (fs) getCurrentWindow().setFullscreen(false);
});
notifyListeners();
}