Getting there
This commit is contained in:
parent
ed5a4379db
commit
f300dbd394
43 changed files with 1213 additions and 459 deletions
|
|
@ -43,6 +43,10 @@ export const settings: GardenRuntimeSettings = {
|
|||
...buildSettings(activeVibe),
|
||||
};
|
||||
|
||||
export const rememberActiveVibeSelection = (): void => {
|
||||
writeBrowserStorage(appConfig.storage.vibeKey, activeVibe.id);
|
||||
};
|
||||
|
||||
export const applyVibeSettings = (vibe: VibePreset) => {
|
||||
activeVibe = cloneVibePreset(vibe);
|
||||
const nextSettings = buildSettings(activeVibe);
|
||||
|
|
@ -59,7 +63,7 @@ export const applyVibeSettings = (vibe: VibePreset) => {
|
|||
normalizeRuntimeSettings(nextSettings, appConfig.runtimeSettings.controls)
|
||||
);
|
||||
|
||||
writeBrowserStorage(appConfig.storage.vibeKey, vibe.id);
|
||||
rememberActiveVibeSelection();
|
||||
|
||||
return activeVibe;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue