fix(device): Agent-electron should always read the configuration from the UHK over USB. (#327)
The feature will implement later.
This commit is contained in:
committed by
László Monda
parent
2df8f2ea54
commit
6bc2bc8331
@@ -18,12 +18,18 @@ export class ElectronDataStorageRepositoryService implements DataStorageReposito
|
|||||||
storage.set(key, JSON.stringify(value));
|
storage.set(key, JSON.stringify(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Throw error when read user config from electron datastore
|
||||||
|
// Agent-electron should always read the configuration from the UHK over USB which will be implemented later.
|
||||||
|
// If implemented the feature should have to throw an error to prevent unwanted side effects.
|
||||||
getConfig(): UserConfiguration {
|
getConfig(): UserConfiguration {
|
||||||
return ElectronDataStorageRepositoryService.getValue('user-config');
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Throw error when save user config from electron-datastore
|
||||||
|
// Agent-electron should always read the configuration from the UHK over USB which will be implemented later.
|
||||||
|
// If implemented the feature should have to throw an error to prevent unwanted side effects.
|
||||||
saveConfig(config: UserConfiguration): void {
|
saveConfig(config: UserConfiguration): void {
|
||||||
ElectronDataStorageRepositoryService.saveValue('user-config', config.toJsonObject());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getAutoUpdateSettings(): AutoUpdateSettings {
|
getAutoUpdateSettings(): AutoUpdateSettings {
|
||||||
|
|||||||
Reference in New Issue
Block a user