From 0bfe84d73d8756911a82b449d982cba9063841b1 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 22 Jan 2025 11:26:25 +0100 Subject: [PATCH] fix saving settings --- src/ext/lib/Settings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ext/lib/Settings.ts b/src/ext/lib/Settings.ts index 62be451..128cbb5 100644 --- a/src/ext/lib/Settings.ts +++ b/src/ext/lib/Settings.ts @@ -345,14 +345,14 @@ class Settings { if (!currentPath[currentProp]) { currentPath[currentProp] = {}; } - this.setProp(propPath, value, options, currentPath[currentProp]); + return this.setProp(propPath, value, options, currentPath[currentProp]); } else { currentPath[currentProp] = value; if (options?.forceReload) { - this.save(); + return this.save(); } else { - this.saveWithoutReload(); + return this.saveWithoutReload(); } } }