aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 18:04:30 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 18:04:30 +0800
commit42bcdf88fbaf3634dd96716f9eb9ee7172d730e1 (patch)
treef0e31d42879457d06dc6eaa907b964d59d6b889e
parentdb9e75bcb2f0f061533431a2acb0f91c95482941 (diff)
downloadSoopyV2-42bcdf88fbaf3634dd96716f9eb9ee7172d730e1.tar.gz
SoopyV2-42bcdf88fbaf3634dd96716f9eb9ee7172d730e1.tar.bz2
SoopyV2-42bcdf88fbaf3634dd96716f9eb9ee7172d730e1.zip
+meta
-rw-r--r--features/settings/index.js4
-rw-r--r--metadata.json4
2 files changed, 6 insertions, 2 deletions
diff --git a/features/settings/index.js b/features/settings/index.js
index 30f653f..6943537 100644
--- a/features/settings/index.js
+++ b/features/settings/index.js
@@ -34,6 +34,10 @@ class SettingsRenderer extends Feature {
}
})
+ this.registerCommand("soopytogglesetting", (category, setting) => {
+ settingsCommunicator.settings?.[category]?.[setting]?.setValue(!settingsCommunicator.settings?.[category]?.[setting]?.getValue())
+ })
+
}
onDisable() {
diff --git a/metadata.json b/metadata.json
index 2a8af70..c900ac8 100644
--- a/metadata.json
+++ b/metadata.json
@@ -5,8 +5,8 @@
"entry": "index.js",
"description": "SoopyV2",
"name": "SoopyV2",
- "version": "2.1.125",
- "versionId": 252,
+ "version": "2.1.126",
+ "versionId": 253,
"requires": [
"soopyApis",
"soopyAddonsData",