fix: full backups fail because of invalid setting IDs

This commit is contained in:
2023-12-07 18:58:40 +01:00
parent 846183bbb1
commit 77339620e6

View File

@@ -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.