diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-28 01:07:56 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-08 21:43:18 +0100 |
commit | 24bbe1f574ee6b0d6d0ebc8c29cbf014fc450584 (patch) | |
tree | e89b2d700930d6722eb0685d8d3a9be91df851cf /packages/main/src/infrastructure/config/impl | |
parent | test: Add tests for main window hardening (diff) | |
download | sophie-24bbe1f574ee6b0d6d0ebc8c29cbf014fc450584.tar.gz sophie-24bbe1f574ee6b0d6d0ebc8c29cbf014fc450584.tar.zst sophie-24bbe1f574ee6b0d6d0ebc8c29cbf014fc450584.zip |
feat: Save selected service to file
Sophie start off from the service that was selected when it was last
open.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src/infrastructure/config/impl')
-rw-r--r-- | packages/main/src/infrastructure/config/impl/ConfigFile.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/main/src/infrastructure/config/impl/ConfigFile.ts b/packages/main/src/infrastructure/config/impl/ConfigFile.ts index 90ee187..e8237b4 100644 --- a/packages/main/src/infrastructure/config/impl/ConfigFile.ts +++ b/packages/main/src/infrastructure/config/impl/ConfigFile.ts | |||
@@ -29,7 +29,7 @@ import type Config from '../../../stores/config/Config'; | |||
29 | import type Disposer from '../../../utils/Disposer'; | 29 | import type Disposer from '../../../utils/Disposer'; |
30 | import { getLogger } from '../../../utils/log'; | 30 | import { getLogger } from '../../../utils/log'; |
31 | import type ConfigRepository from '../ConfigRepository'; | 31 | import type ConfigRepository from '../ConfigRepository'; |
32 | import type ReadConfigResult from '../ReadConfigResult'; | 32 | import type { ReadConfigResult } from '../ConfigRepository'; |
33 | 33 | ||
34 | const log = getLogger('ConfigFile'); | 34 | const log = getLogger('ConfigFile'); |
35 | 35 | ||
@@ -81,7 +81,7 @@ export default class ConfigFile implements ConfigRepository { | |||
81 | } finally { | 81 | } finally { |
82 | this.#writingConfig = false; | 82 | this.#writingConfig = false; |
83 | } | 83 | } |
84 | log.info('Wrote config file', this.#configFilePath); | 84 | log.debug('Wrote config file', this.#configFilePath); |
85 | } | 85 | } |
86 | 86 | ||
87 | watchConfig(callback: () => Promise<void>, throttleMs: number): Disposer { | 87 | watchConfig(callback: () => Promise<void>, throttleMs: number): Disposer { |