diff options
author | Lewis Crichton <lewi@lewisakura.moe> | 2023-04-15 13:50:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 14:50:00 +0200 |
commit | ff3589d1575ce1698a306e60e91d13070c955b77 (patch) | |
tree | 77cf3738c43bd7b4eab29239be56dad7f06a1bd2 /src/utils/settingsSync.ts | |
parent | 7a98f1dfcb7b4b2cc8e273a00308c9d6f9f300bd (diff) | |
download | Vencord-ff3589d1575ce1698a306e60e91d13070c955b77.tar.gz Vencord-ff3589d1575ce1698a306e60e91d13070c955b77.tar.bz2 Vencord-ff3589d1575ce1698a306e60e91d13070c955b77.zip |
CloudSync: fix accidently applying stale settings (#915
* modify the cloud timestamp before importing
* use util/native relaunch
* lambda why
* "should work!" - Vendicated, 15th April 2023
Diffstat (limited to 'src/utils/settingsSync.ts')
-rw-r--r-- | src/utils/settingsSync.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/settingsSync.ts b/src/utils/settingsSync.ts index d1348e1..ff49529 100644 --- a/src/utils/settingsSync.ts +++ b/src/utils/settingsSync.ts @@ -35,6 +35,7 @@ export async function importSettings(data: string) { } if ("settings" in parsed && "quickCss" in parsed) { + Object.assign(PlainSettings, parsed.settings); await VencordNative.ipc.invoke(IpcEvents.SET_SETTINGS, JSON.stringify(parsed.settings, null, 4)); await VencordNative.ipc.invoke(IpcEvents.SET_QUICK_CSS, parsed.quickCss); } else |