Skip to content

Commit

Permalink
fix(settings): fix template setting not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx committed Feb 15, 2024
1 parent 49be37a commit f0d4ea2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/app/src/settings/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,18 @@ export function createSettingsStore(plugin: MxPlugin) {
setTemplate(key, value) {
switch (key) {
case "screenshot":
return set({ screenshotTemplate: value });
set({ screenshotTemplate: value });
break;
case "screenshotEmbed":
return set({ screenshotEmbedTemplate: value });
set({ screenshotEmbedTemplate: value });
break;
case "timestamp":
return set({ timestampTemplate: value });
set({ timestampTemplate: value });
break;
default:
assertNever(key);
}
save(get());
},
setMxLinkAltBehavior: (click) => {
set(({ defaultMxLinkClick }) => ({
Expand Down

0 comments on commit f0d4ea2

Please sign in to comment.