This commit is contained in:
josc146
2023-06-29 20:14:52 +08:00
parent 417389c5f6
commit 87ca694b0b
5 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { makeAutoObservable } from 'mobx';
import { getUserLanguage, isSystemLightMode, saveConfigs, savePresets } from '../utils';
import { getUserLanguage, isSystemLightMode, saveCache, saveConfigs, savePresets } from '../utils';
import { WindowSetDarkTheme, WindowSetLightTheme } from '../../wailsjs/runtime';
import manifest from '../../../manifest.json';
import { ModelConfig } from '../pages/Configs';
@@ -169,8 +169,10 @@ class CommonStore {
this.about = value;
};
setDepComplete = (value: boolean) => {
setDepComplete = (value: boolean, inSaveCache: boolean = true) => {
this.depComplete = value;
if (inSaveCache)
saveCache();
};
setDownloadList = (value: DownloadStatus[]) => {