-
-
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
WebUI: Improve torrent deletion #21289
WebUI: Improve torrent deletion #21289
Conversation
MochaUI.centerWindow(w); | ||
} | ||
}); | ||
if (LocalPreferences.get("confirm_torrent_deletion", "true") === "true") { |
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.
It was necessary to pretty much copy and paste it multiple times here and below in order to make confirm option work in all cases and to keep existing code intact. Currently, WebUI does not properly take into account selected filters (and filter terms) when performing "Start/stop/remove torrents" context menu actions. I'm going to improve this behavior in another PR and most of the repeated code from here will be gone. I just wanted to do things in proper order.
eb30884
to
8dfe1a8
Compare
8dfe1a8
to
efc4e4e
Compare
efc4e4e
to
a22c00f
Compare
a22c00f
to
e9fef52
Compare
@skomerko |
Closes #18345.
Everything should work like in GUI, so:
Confirm OFF:
When deleting selected torrents:
DEL / context menu: torrents deleted, files untouched
Shift + DEL: both deleted
When deleting by Category/Tag/Tracker:
Torrents deleted, files untouched
Confirm ON:
Should work like before, no changes there.