-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable customizing the save statistics time interval #21291
Conversation
Replaced hardcoded statistics save interval with configurable value New entry located in Advanced section Closes qbittorrent#21285
Merge with master
I would put this setting near "Save resume data interval" |
Tested, works as intended. |
Relocate the new option in the menu and moved the corresponding code around
Moved it according to @thalieht 's suggestion[1]. Also moved the corresponding code around to keep the ordering of the items & fixed the rest of the remarks. [1]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, only one small comment.
@burnerelu
Nah, just wait for someone's free time to merge it. |
This change extends the Advanced section of the Preferences menu with a new field, allowing changing the time statistics save interval. A null value will prevent recurrent saving.
This aims to provide the feature requested in issue #21285
Tested updating the value from the web UI and reading it from the local client and the other way around. Did not test the actual file update time, as I did not touch the mechanism below the
saveStatistics
function.I did not extend the lang/translation files as I wasn't sure I was supposed to. This is my first contribution to qBittorent, so I'm not familiar with the WoW
closes #21285