Disable disk caching in stateService

This commit is contained in:
Thomas Rittson 2022-03-15 18:24:38 +10:00
parent f46405a508
commit dae65661a3
2 changed files with 4 additions and 2 deletions

View File

@ -184,7 +184,8 @@ export function initFactory(
secureStorageService,
logService,
stateMigrationService,
new StateFactory(GlobalState, Account)
new StateFactory(GlobalState, Account),
false // Do not use disk caching because this will get out of sync with the main process service
),
deps: [
StorageServiceAbstraction,

View File

@ -83,7 +83,8 @@ export class Main {
null,
this.logService,
null,
new StateFactory(GlobalState, Account)
new StateFactory(GlobalState, Account),
false // Do not use disk caching because this will get out of sync with the renderer service
);
this.windowMain = new WindowMain(