Skip to content

Commit 4a3997c

Browse files
committed
Fixed type issues
1 parent 821c141 commit 4a3997c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DeskThingServer/src/main/stores/platforms/websocket/wsWebsocket.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class WSPlatform {
4848

4949
private readonly identifier: Omit<ClientIdentifier, 'id' | 'method' | 'active'> = {
5050
providerId: PlatformIDs.WEBSOCKET,
51-
capabilities: [ProviderCapabilities.COMMUNICATE, ProviderCapabilities.PING]
51+
capabilities: [ProviderCapabilities.COMMUNICATE, ProviderCapabilities.PING],
52+
connectionState: ConnectionState.Connected
5253
}
5354

5455
public readonly id = PlatformIDs.WEBSOCKET

DeskThingServer/src/main/stores/storeProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export class StoreProvider {
136136
),
137137
flashStore: async () => new (await storeImports.flashStore())(),
138138
thingifyStore: async () => new (await storeImports.thingifyStore())(),
139-
statsStore: async () => new (await storeImports.statsStore())(),
139+
statsStore: async () =>
140+
new (await storeImports.statsStore())(await this.getStore('settingsStore', false)),
140141
statsCollector: async () =>
141142
new (await storeImports.statsCollector())(await this.getStore('statsStore', false))
142143
}

DeskThingServer/src/renderer/src/stores/settingsStore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const useSettingsStore = create<SettingsStoreState>((set, get) => ({
3737
adb_autoConfig: false,
3838
adb_autoDetect: false,
3939
flag_firstClose: false,
40-
flag_hasOpened: false
40+
flag_hasOpened: false,
41+
flag_collectStats: false
4142
},
4243
initialize: async () => {
4344
if (get().initialized) return

0 commit comments

Comments
 (0)