Skip to content

Commit

Permalink
save UUID when resetting config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 20, 2024
1 parent 8dcec59 commit 832504c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 832504c

Please sign in to comment.