From 1bb27ee3f992888ccb540366c0f99f06145f1b8a Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sat, 19 Apr 2025 17:28:23 +0800 Subject: [PATCH] feat: update Z.ai app configuration with additional styling and increment store version to 97 --- src/renderer/src/config/minapps.ts | 5 ++++- src/renderer/src/store/index.ts | 2 +- src/renderer/src/store/migrate.ts | 8 +------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/renderer/src/config/minapps.ts b/src/renderer/src/config/minapps.ts index 88a75fc8..caa099cb 100644 --- a/src/renderer/src/config/minapps.ts +++ b/src/renderer/src/config/minapps.ts @@ -399,6 +399,9 @@ export const DEFAULT_MIN_APPS: MinAppType[] = [ name: `Z.ai`, logo: ZaiAppLogo, url: `https://chat.z.ai/`, - bodered: true + bodered: true, + style: { + padding: 10 + } } ] diff --git a/src/renderer/src/store/index.ts b/src/renderer/src/store/index.ts index 2a441d29..8131ac5c 100644 --- a/src/renderer/src/store/index.ts +++ b/src/renderer/src/store/index.ts @@ -42,7 +42,7 @@ const persistedReducer = persistReducer( { key: 'cherry-studio', storage, - version: 96, + version: 97, blacklist: ['runtime', 'messages'], migrate }, diff --git a/src/renderer/src/store/migrate.ts b/src/renderer/src/store/migrate.ts index 2a1318b4..f6e62463 100644 --- a/src/renderer/src/store/migrate.ts +++ b/src/renderer/src/store/migrate.ts @@ -1232,13 +1232,7 @@ const migrateConfig = { '97': (state: RootState) => { try { addMiniApp(state, 'zai') - return state - } catch (error) { - return state - } - }, - '98': (state: RootState) => { - try { + state.settings.webdavMaxBackups = 0 if (state.websearch && state.websearch.providers) { state.websearch.providers.forEach((provider) => { provider.basicAuthUsername = ''