From 77339620e6e208f8a7955b4e77e7dc2bc8847fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Thu, 7 Dec 2023 18:58:40 +0100 Subject: [PATCH] fix: full backups fail because of invalid setting IDs --- src/routes/EditActions.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/routes/EditActions.svelte b/src/routes/EditActions.svelte index 0f9d7909..39cc4f6f 100644 --- a/src/routes/EditActions.svelte +++ b/src/routes/EditActions.svelte @@ -75,10 +75,13 @@ } for (const [id, setting] of $overlay.settings) { - await port.setSetting(id, setting) + try { + await port.setSetting(id, setting) + } catch (e) { + console.log("Skipping invalid ID", e) + } } - // Yes, this is a completely arbitrary and unnecessary delay. // The only purpose of it is to create a sense of weight, // aka make it more "energy intensive" to click.