Add explicit auto compression toggle

This commit is contained in:
Youzini-afk
2026-04-04 16:14:26 +08:00
parent f367b8989c
commit 5d11a736ee
5 changed files with 78 additions and 15 deletions

View File

@@ -1620,6 +1620,10 @@ function _refreshConfigTab() {
"bme-setting-sleep-cycle-enabled",
settings.enableSleepCycle ?? false,
);
_setCheckboxValue(
"bme-setting-auto-compression-enabled",
settings.enableAutoCompression ?? true,
);
_setCheckboxValue(
"bme-setting-prob-recall-enabled",
settings.enableProbRecall ?? false,
@@ -1944,6 +1948,10 @@ function _bindConfigControls() {
_patchSettings({ enableSleepCycle: checked });
_refreshGuardedConfigStates();
});
bindCheckbox("bme-setting-auto-compression-enabled", (checked) => {
_patchSettings({ enableAutoCompression: checked });
_refreshGuardedConfigStates();
});
bindCheckbox("bme-setting-prob-recall-enabled", (checked) => {
_patchSettings({ enableProbRecall: checked });
_refreshGuardedConfigStates();