aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/GuiPage.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 12:06:18 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 12:06:18 +0800
commit9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b (patch)
treeaa20f5314241d517b0a50b123926077685fb700e /features/soopyGui/GuiPage.js
parenta6593709b0e1e99e241b6c163fe66623685b6efc (diff)
parent51cdd4ca4ea64e1a9a67b99c274693a54f7f535d (diff)
downloadSoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.gz
SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.bz2
SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/soopyGui/GuiPage.js')
-rw-r--r--features/soopyGui/GuiPage.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/features/soopyGui/GuiPage.js b/features/soopyGui/GuiPage.js
index f5ac9a5..7a21d26 100644
--- a/features/soopyGui/GuiPage.js
+++ b/features/soopyGui/GuiPage.js
@@ -19,7 +19,13 @@ class GuiPage {
}
getSoopyGui() {
- return global.soopyv2featuremanagerthing.features["soopyGui"].class
+ if (global.soopyv2featuremanagerthing.features["soopyGui"]) return global.soopyv2featuremanagerthing.features["soopyGui"].class;
+ }
+
+ isOpen() {
+ if (!this.getSoopyGui()?.gui?.ctGui?.isOpen()) return false
+
+ return this.getSoopyGui()?.currCategory === this
}
newPage() {