Update restore defaults to not delete patterns
This commit is contained in:
parent
e84c39837f
commit
9b9176325b
1 changed files with 2 additions and 1 deletions
|
|
@ -311,7 +311,8 @@ export function SettingsTab({ started }) {
|
|||
onClick={() => {
|
||||
confirmDialog('Sure?').then((r) => {
|
||||
if (r) {
|
||||
settingsMap.set(defaultSettings);
|
||||
const { userPatterns } = settingsMap.get(); // keep current patterns
|
||||
settingsMap.set({...defaultSettings, userPatterns});
|
||||
}
|
||||
});
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue