mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 19:15:59 +08:00
settings page updates on applying preset
This commit is contained in:
parent
e30943d714
commit
a3c74b53b8
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as Config from "./config";
|
||||
import * as DB from "./db";
|
||||
import * as Notifications from "./notifications";
|
||||
import * as Settings from "./settings";
|
||||
|
||||
export function apply(id) {
|
||||
// console.log(DB.getSnapshot().presets);
|
||||
|
@ -9,6 +10,7 @@ export function apply(id) {
|
|||
Config.apply(JSON.parse(JSON.stringify(preset.config)));
|
||||
Notifications.add("Preset applied", 1, 2);
|
||||
Config.saveToLocalStorage();
|
||||
Settings.update();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue