diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-11-28 16:53:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 15:53:04 +0000 |
commit | d5d685aaf4e796faf612c6d0fea0f0cc9ea49614 (patch) | |
tree | 72f027dc2d57f00c366d61570fd76ed6a0fcb27a /src/config.ts | |
parent | 6.2.1-nightly.52 [skip ci] (diff) | |
download | ferdium-app-d5d685aaf4e796faf612c6d0fea0f0cc9ea49614.tar.gz ferdium-app-d5d685aaf4e796faf612c6d0fea0f0cc9ea49614.tar.zst ferdium-app-d5d685aaf4e796faf612c6d0fea0f0cc9ea49614.zip |
fix: ensure default values are working for the all fields in all settings screens (#750)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/config.ts b/src/config.ts index b0063e342..ceadda645 100644 --- a/src/config.ts +++ b/src/config.ts | |||
@@ -338,12 +338,9 @@ export const SERVER_NOT_LOADED = 'Ferdium::SERVER_NOT_LOADED'; | |||
338 | 338 | ||
339 | export const ALLOWED_PROTOCOLS = ['https:', 'http:', 'ftp:', 'ferdium:']; | 339 | export const ALLOWED_PROTOCOLS = ['https:', 'http:', 'ftp:', 'ferdium:']; |
340 | 340 | ||
341 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; | ||
342 | |||
343 | export const DEFAULT_TODOS_WIDTH = 300; | 341 | export const DEFAULT_TODOS_WIDTH = 300; |
344 | export const TODOS_MIN_WIDTH = 200; | 342 | export const TODOS_MIN_WIDTH = 200; |
345 | export const DEFAULT_TODOS_VISIBLE = false; | 343 | export const DEFAULT_TODOS_VISIBLE = false; |
346 | export const DEFAULT_IS_FEATURE_ENABLED_BY_USER = true; | ||
347 | export const DEFAULT_IS_TODO_FEATURE_ENABLED_BY_USER = false; | 344 | export const DEFAULT_IS_TODO_FEATURE_ENABLED_BY_USER = false; |
348 | export const TODOS_PARTITION_ID = 'persist:todos'; | 345 | export const TODOS_PARTITION_ID = 'persist:todos'; |
349 | 346 | ||
@@ -431,9 +428,18 @@ export const DEFAULT_APP_SETTINGS = { | |||
431 | liftSingleInstanceLock: false, | 428 | liftSingleInstanceLock: false, |
432 | enableLongPressServiceHint: false, | 429 | enableLongPressServiceHint: false, |
433 | proxyFeatureEnabled: false, | 430 | proxyFeatureEnabled: false, |
431 | proxyHost: '', | ||
432 | proxyPort: 0, | ||
433 | proxyUser: '', | ||
434 | proxyPassword: '', | ||
434 | onlyShowFavoritesInUnreadCount: false, | 435 | onlyShowFavoritesInUnreadCount: false, |
435 | customTodoServer: '', | 436 | customTodoServer: '', |
436 | locale: 'en-US', | 437 | locale: 'en-US', |
438 | keepAllWorkspacesLoaded: false, | ||
439 | isFeatureEnabledByUser: true, | ||
440 | darkReaderBrightness: 100, | ||
441 | darkReaderContrast: 90, | ||
442 | darkReaderSepia: 10, | ||
437 | }; | 443 | }; |
438 | 444 | ||
439 | export const DEFAULT_SERVICE_SETTINGS = { | 445 | export const DEFAULT_SERVICE_SETTINGS = { |