Skip to content

Commit

Permalink
If all windows got minimzed, allow reopening
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinBrett committed Sep 18, 2024
1 parent d505ee9 commit a272ddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a272ddf

Please sign in to comment.