Skip to content

Commit

Permalink
Version 1.0.3 - Fix Gitpod script
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Hopkinson committed Aug 19, 2024
1 parent f0cdcb0 commit 00a1767
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tasks:
- init: yarn && yarn build
- init: cd lib && sh FetchOpenRCT2Api.sh && cd .. && yarn && yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "close-all-windows-openrct2",
"version": "1.0.2",
"version": "1.0.3",
"description": "Closes all open windows in OpenRCT2",
"scripts": {
"build": "tsc",
Expand Down
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
var CloseAllWindows = function () {
if (ui.windows !== undefined) {
for (var i = 0; i < ui.windows; i++) {
if (!ui.getWindow(i).isSticky) window.close();
var window = ui.getWindow(i);

if (!window.isSticky) window.close();
}
}
};
Expand All @@ -14,7 +16,7 @@ var main = function () {

registerPlugin({
name: "Close all Windows",
version: "1.0.2",
version: "1.0.3",
authors: ["Harry Hopkinson"],
type: "local",
main: main,
Expand Down

0 comments on commit 00a1767

Please sign in to comment.