From a272ddf4aea461580f396ab88058881b94549cda Mon Sep 17 00:00:00 2001 From: Dustin Brett Date: Tue, 17 Sep 2024 20:18:29 -0700 Subject: [PATCH] If all windows got minimzed, allow reopening --- utils/functions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/functions.ts b/utils/functions.ts index 1fe06641d3..55399fcf26 100644 --- a/utils/functions.ts +++ b/utils/functions.ts @@ -69,6 +69,7 @@ export const toggleShowDesktop = ( const allWindows = restoreWindows ? [...stackOrder].reverse() : stackOrder; if (!restoreWindows) visibleWindows = []; + else if (visibleWindows.length === 0) visibleWindows = allWindows; allWindows.forEach((pid) => { if (restoreWindows) {