aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/GuiPage.js
diff options
context:
space:
mode:
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() {