From 42cde0a2b3b628b06dbc48efeb010d1de5ec3cb8 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(); } } }