Skip to content

Commit 6bc2bc8

Browse files
ert78gbmondalaci
authored andcommitted
fix(device): Agent-electron should always read the configuration from the UHK over USB. (#327)
The feature will implement later.
1 parent 2df8f2e commit 6bc2bc8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

electron/src/services/electron-datastorage-repository.service.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ export class ElectronDataStorageRepositoryService implements DataStorageReposito
1818
storage.set(key, JSON.stringify(value));
1919
}
2020

21+
// TODO: Throw error when read user config from electron datastore
22+
// Agent-electron should always read the configuration from the UHK over USB which will be implemented later.
23+
// If implemented the feature should have to throw an error to prevent unwanted side effects.
2124
getConfig(): UserConfiguration {
22-
return ElectronDataStorageRepositoryService.getValue('user-config');
25+
return null;
2326
}
2427

28+
// TODO: Throw error when save user config from electron-datastore
29+
// Agent-electron should always read the configuration from the UHK over USB which will be implemented later.
30+
// If implemented the feature should have to throw an error to prevent unwanted side effects.
2531
saveConfig(config: UserConfiguration): void {
26-
ElectronDataStorageRepositoryService.saveValue('user-config', config.toJsonObject());
32+
2733
}
2834

2935
getAutoUpdateSettings(): AutoUpdateSettings {

0 commit comments

Comments
 (0)