diff options
author | 2022-06-21 15:45:07 +0100 | |
---|---|---|
committer | 2022-06-21 15:45:07 +0100 | |
commit | f81687b03a87a88988d4cce8110d015b046a7436 (patch) | |
tree | dcb4f5012979e0184b1c40e6095ca13a56a3eecc /src/containers/settings/EditSettingsScreen.js | |
parent | Turn off the progressbar by default (diff) | |
download | ferdium-app-f81687b03a87a88988d4cce8110d015b046a7436.tar.gz ferdium-app-f81687b03a87a88988d4cce8110d015b046a7436.tar.zst ferdium-app-f81687b03a87a88988d4cce8110d015b046a7436.zip |
Fix reload after resume and add idle time setting (#324)
* Fix reload after resume issue
* Add idle time option
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index bae19d3b6..898a2f482 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -74,6 +74,10 @@ const messages = defineMessages({ | |||
74 | id: 'settings.app.form.reloadAfterResume', | 74 | id: 'settings.app.form.reloadAfterResume', |
75 | defaultMessage: 'Reload Ferdium after system resume', | 75 | defaultMessage: 'Reload Ferdium after system resume', |
76 | }, | 76 | }, |
77 | reloadAfterResumeTime: { | ||
78 | id: 'settings.app.form.reloadAfterResumeTime', | ||
79 | defaultMessage: 'Time to consider the system as idle/suspended (in minutes)', | ||
80 | }, | ||
77 | minimizeToSystemTray: { | 81 | minimizeToSystemTray: { |
78 | id: 'settings.app.form.minimizeToSystemTray', | 82 | id: 'settings.app.form.minimizeToSystemTray', |
79 | defaultMessage: 'Minimize Ferdium to system tray', | 83 | defaultMessage: 'Minimize Ferdium to system tray', |
@@ -323,6 +327,7 @@ class EditSettingsScreen extends Component { | |||
323 | runInBackground: Boolean(settingsData.runInBackground), | 327 | runInBackground: Boolean(settingsData.runInBackground), |
324 | enableSystemTray: Boolean(settingsData.enableSystemTray), | 328 | enableSystemTray: Boolean(settingsData.enableSystemTray), |
325 | reloadAfterResume: Boolean(settingsData.reloadAfterResume), | 329 | reloadAfterResume: Boolean(settingsData.reloadAfterResume), |
330 | reloadAfterResumeTime: Number(settingsData.reloadAfterResumeTime), | ||
326 | startMinimized: Boolean(settingsData.startMinimized), | 331 | startMinimized: Boolean(settingsData.startMinimized), |
327 | confirmOnQuit: Boolean(settingsData.confirmOnQuit), | 332 | confirmOnQuit: Boolean(settingsData.confirmOnQuit), |
328 | minimizeToSystemTray: Boolean(settingsData.minimizeToSystemTray), | 333 | minimizeToSystemTray: Boolean(settingsData.minimizeToSystemTray), |
@@ -516,6 +521,11 @@ class EditSettingsScreen extends Component { | |||
516 | value: settings.all.app.reloadAfterResume, | 521 | value: settings.all.app.reloadAfterResume, |
517 | default: DEFAULT_APP_SETTINGS.reloadAfterResume, | 522 | default: DEFAULT_APP_SETTINGS.reloadAfterResume, |
518 | }, | 523 | }, |
524 | reloadAfterResumeTime: { | ||
525 | label: intl.formatMessage(messages.reloadAfterResumeTime), | ||
526 | value: settings.all.app.reloadAfterResumeTime, | ||
527 | default: DEFAULT_APP_SETTINGS.reloadAfterResumeTime, | ||
528 | }, | ||
519 | minimizeToSystemTray: { | 529 | minimizeToSystemTray: { |
520 | label: intl.formatMessage(messages.minimizeToSystemTray), | 530 | label: intl.formatMessage(messages.minimizeToSystemTray), |
521 | value: settings.all.app.minimizeToSystemTray, | 531 | value: settings.all.app.minimizeToSystemTray, |