Skip to content

Commit

Permalink
Fixed minimize cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Apr 30, 2021
1 parent 864c113 commit 7018537
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/feature/minimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ export default class MinimalUIMinimize {
if (MinimalUIMinimize.minimizedStash[i]?.app.appId === app.appId) {
MinimalUIMinimize.minimizedStash[i].position = Object.assign({}, app.position);
targetPos = i;
break
} else if (!targetPos && !MinimalUIMinimize.minimizedStash[i]?.app.rendered) {
MinimalUIMinimize.minimizedStash[i] = {app: app, position: Object.assign({}, app.position)};
targetPos = i;
break;
}
} else if (targetPos && !MinimalUIMinimize.minimizedStash[i]?.app.rendered)
delete MinimalUIMinimize.minimizedStash[i];
}
return targetPos;
}
Expand Down

0 comments on commit 7018537

Please sign in to comment.