aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-23 21:14:52 +0100
committerpraschke <stel@comfy.monster>2023-10-23 21:27:42 +0100
commit7b9f18320c2f0d9dc37d65966f02cdde2c0c5b5e (patch)
tree9131a8533796f1b1397ee4a8d256135678fd0cd7 /ext/js/data
parentc3148c6cf0522c5a3b3f3db6e495f401050c73f7 (diff)
fix: save options after updating them
_optionsUtil.save() is only called in _saveOptions, which is only called through - _onApiSetAllSettings - _onApiModifySettings - _onCommandToggleTextScanning it should be safe to simply save settings after updating them. without saving, the options will be updated every time the background restarts, until any settings are modified or text scanning is toggled. for _updateVersion21, this means the welcome page will open repeatedly to show the same warning.
Diffstat (limited to 'ext/js/data')
-rw-r--r--ext/js/data/options-util.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js
index 1f2ffb05..1cf2a2c8 100644
--- a/ext/js/data/options-util.js
+++ b/ext/js/data/options-util.js
@@ -114,6 +114,7 @@ class OptionsUtil {
if (typeof options !== 'undefined') {
options = await this.update(options);
+ await save(options);
} else {
options = this.getDefault();
}