From 99c349f6df1dc3cead2eaad9251e1555b01ffbc8 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 4 Apr 2026 14:39:34 +0200 Subject: [PATCH] fix: preserve font settings when repo has no .remanso.json When no config file exists, userSettings was set to null which destroyed cached user preferences and silently blocked all setFont* actions. --- src/modules/repo/store/userRepo.store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/repo/store/userRepo.store.ts b/src/modules/repo/store/userRepo.store.ts index ba50d8b..9c78fa9 100644 --- a/src/modules/repo/store/userRepo.store.ts +++ b/src/modules/repo/store/userRepo.store.ts @@ -95,10 +95,10 @@ export const useUserRepoStore = defineStore("USER_REPO_STATE", { this.userSettings?.chosenBodyFont ?? userSettings?.chosenBodyFont ?? chosenFontFamily - this.userSettings = userSettings - - if (!this.userSettings) { - return + if (userSettings) { + this.userSettings = userSettings + } else if (!this.userSettings) { + this.userSettings = { $type: DataType.UserSettings } } this.userSettings.chosenFontFamily =