-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Allow to remember torrent content files deletion in WebUI #20150
Conversation
This setting was used in the Qt GUI but not in WebUI; I named it delete_torrent_files_as_default to match other WebUI setting names.
Qt UI has a 'Remember choice' button in the confirm torrent deletion dialog; this adds a button to the WebUI that matches the Qt dialog in looks and functionality. - Button's title text (not visible, but needed for accessibility) matches Qt UI, so existing translations for 'Remember choice' can be used. Do I just need to update all the .ts files and use the QBT_TR() helper? - The button's script GETs api/v2/app/preferences each time the confirm deletion dialog opens; should we cache the deletion setting locally? Closes qbittorrent#20073.
Also reordered things for better clarity and rewrote/added comments.
@solarfl4re |
Sure, that sounds good. |
30bdbcc
to
8a3404b
Compare
8a3404b
to
5c6df12
Compare
Looks confusing... is it about deletion of torrent file? |
@Chocobo1, @qbittorrent/bug-handlers P.S. this especially refers to user-visible strings. |
* Fix wrong initialization logic for the "Delete files" checkbox. * Revert back to use XHR to load svg icon. This is better than embedding svg icons. * Revise CSS selector. * Make the dialog resizeable and a bit larger.
5c6df12
to
9a244d5
Compare
Current string looks good enough to me but i don't know if utorrent has trained its users to consider the .torrent file as part of the torrent's files. |
It's not even about uTorrent. "torrent files" is just ambiguous in itself, isn't it? |
I was talking about the single torrent deletion string. I just saw OP pics and multi torrent deletion string can definitely be confusing. |
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.
Didn't test.
@solarfl4re |
The dialog currently does not make use of the number of torrents being deleted. It can be counted from:
And modify the message string accordingly:
Ideally it should match GUI behavior. PR welcome. |
I don't see how that helps. I meant |
IMO, we should use "torrent content files" (or some other suitable alternative) in all such cases to dusambiguate it. |
What about 'downloaded'? E.g. 'delete downloaded files' - that's clear to me as meaning the files I've downloaded. |
It removes the content referenced by torrent independently from whether it was downloaded by torrent or they are previously existing files that you share via that torrent. |
Add a 'remember choice' button to the WebUI Torrent deletion dialog that sets the default file deletion setting. The setting is shared with Qt UI, so if you set it in WebUI and open the Qt app, the delete files checkbox will match WebUI (checked or unchecked).
Button is disabled until user checks or unchecks the delete files checkbox:
When the checkbox is clicked, the user can click the lock button to remember their choice: