From 832504c484640002eab689be0c444349a9df6419 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Sun, 20 Oct 2024 11:39:58 +0100 Subject: [PATCH] save UUID when resetting config --- js/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui.js b/js/ui.js index bb4a860c..4ca4fe9b 100644 --- a/js/ui.js +++ b/js/ui.js @@ -1789,7 +1789,7 @@ window.onload = async () => { // Disable SNR config.filters.SNR = 0; - + // set version config.VERSION = VERSION; // switch off debug mode we don't want this to be remembered @@ -4594,7 +4594,9 @@ DOM.gain.addEventListener('input', () => { } case 'reset-defaults': { if (confirm('Are you sure you want to revert to the default settings? You will need to relaunch Chirpity to see the changes.')){ + const uuid = config.UUID; config = defaultConfig; + config.UUID = uuid; updatePrefs('config.json', config); } break;