custom indicators fixed
This commit is contained in:
@@ -98,6 +98,11 @@ export const DEFAULT_STORES: StoreConfig[] = [
|
||||
persistent: true,
|
||||
initialState: () => ({}),
|
||||
},
|
||||
{
|
||||
name: 'indicator_types',
|
||||
persistent: true,
|
||||
initialState: () => ({}),
|
||||
},
|
||||
{
|
||||
name: 'channelState',
|
||||
persistent: false,
|
||||
|
||||
@@ -194,6 +194,8 @@ export class WorkspaceManager {
|
||||
const storeConfig = this.stores.find((s) => s.name === storeName);
|
||||
if (storeConfig?.persistent) {
|
||||
this.dirtyStores.add(storeName);
|
||||
// Persist immediately so changes survive page reloads (not just graceful shutdown)
|
||||
await this.saveDirtyStores();
|
||||
}
|
||||
|
||||
// Send response if needed
|
||||
|
||||
Reference in New Issue
Block a user