Skip to content
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

Fix torrent deleted without confirmation #2724

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

jevenski
Copy link
Contributor

@jevenski jevenski commented Oct 9, 2024

  • This commit fixes an error that torrent(s) get deleted without confirmation, even if the option is checked in the options. Previously, the delete action worked as expected using the delete button in the top menu, asking for confirmation before taking actual action. However, using the "remove" option in the context menu or the DEL key on the keyboard would got the torrent(s) removed immediately. They were just not calling the correct remove function.
  • Besides the correction of delete events handler, two other things were carried out by the way, although not on the scope of the entire app but just around the functions that were adjusted in this fix.
    1. Some ident related issues were picked out by the way, like mixing spaces with tabs on the same line.
    2. Documentations were added to some of the JS functions, according to my own understanding of the function. They might be incorrect, but can be polished while the project grows.

Related:
#2596
#2721 (comment) (the part of accidentally tapping "remove" in the last paragraph)

- This commit fixes an error that torrent(s) get deleted without
  confirmation, even if the option is checked in the options.
  Previously, the delete action worked as expected using the delete
  button in the top menu, asking for confirmation before taking
  actual action. However, using the "remove" option in the context
  menu or the `DEL` key on the keyboard would got the torrent(s)
  removed immediately. They were just not calling the correct
  remove function.
- Besides the correction of delete events handler, two other things
  were carried out by the way, although not on the scope of the
  entire app but just around the functions that were adjusted in
  this fix.
  1. Some ident related issues were picked out by the way, like
  mixing spaces with tabs on the same line.
  2. Documentations were added to some of the JS functions, according
  to my own understanding of the function. They might be incorrect,
  but can be polished while the project grows.
@stickz
Copy link
Collaborator

stickz commented Oct 9, 2024

Thanks!

@stickz stickz merged commit 9472968 into Novik:develop Oct 9, 2024
@jevenski jevenski deleted the confirm-delete branch October 10, 2024 00:01
@stickz
Copy link
Collaborator

stickz commented Oct 11, 2024

@jevenski Could I ask a small favour? Could you backport just the delete key fix to the v4.3 branch? I want to push out a version that Gentoo Linux can mark as stable. It will be a major milestone for the ruTorrent project to get a stability mark on Linux!

@jevenski
Copy link
Contributor Author

@jevenski Could I ask a small favour? Could you backport just the delete key fix to the v4.3 branch? I want to push out a version that Gentoo Linux can mark as stable. It will be a major milestone for the ruTorrent project to get a stability mark on Linux!

Yes, sure thing. Just wanna confirm that we just need the correction on bringing up the confirmation dialog, without the indent and the documentation part?

@stickz
Copy link
Collaborator

stickz commented Oct 11, 2024

@jevenski Could I ask a small favour? Could you backport just the delete key fix to the v4.3 branch? I want to push out a version that Gentoo Linux can mark as stable. It will be a major milestone for the ruTorrent project to get a stability mark on Linux!

Yes, sure thing. Just wanna confirm that we just need the correction on bringing up the confirmation dialog, without the indent and the documentation part?

Yes, that is correct.

On that topic, is anyone else seeing an issue where delete with data is doing the data removal but the torrent stays in the webpage list until a full page reload?

Could you move this to a discussion and provide your rTorrent configuration? We need to diagnose the network side of things first, to eliminate other possibilities before we can blame the web client. ruTorrent mostly displays what it's told by rTorrent.

@stickz stickz mentioned this pull request Oct 14, 2024
4 tasks
koblack pushed a commit to koblack/ruTorrent that referenced this pull request Nov 24, 2024
* Fix torrent deleted without confirmation

- This commit fixes an error that torrent(s) get deleted without
  confirmation, even if the option is checked in the options.
  Previously, the delete action worked as expected using the delete
  button in the top menu, asking for confirmation before taking
  actual action. However, using the "remove" option in the context
  menu or the `DEL` key on the keyboard would got the torrent(s)
  removed immediately. They were just not calling the correct
  remove function.
- Besides the correction of delete events handler, two other things
  were carried out by the way, although not on the scope of the
  entire app but just around the functions that were adjusted in
  this fix.
  1. Some ident related issues were picked out by the way, like
  mixing spaces with tabs on the same line.
  2. Documentations were added to some of the JS functions, according
  to my own understanding of the function. They might be incorrect,
  but can be polished while the project grows.

* Fix typo
koblack pushed a commit to koblack/ruTorrent that referenced this pull request Nov 24, 2024
* Fix torrent deleted without confirmation

- This commit fixes an error that torrent(s) get deleted without
  confirmation, even if the option is checked in the options.
  Previously, the delete action worked as expected using the delete
  button in the top menu, asking for confirmation before taking
  actual action. However, using the "remove" option in the context
  menu or the `DEL` key on the keyboard would got the torrent(s)
  removed immediately. They were just not calling the correct
  remove function.
- Besides the correction of delete events handler, two other things
  were carried out by the way, although not on the scope of the
  entire app but just around the functions that were adjusted in
  this fix.
  1. Some ident related issues were picked out by the way, like
  mixing spaces with tabs on the same line.
  2. Documentations were added to some of the JS functions, according
  to my own understanding of the function. They might be incorrect,
  but can be polished while the project grows.

* Fix typo
koblack pushed a commit to koblack/ruTorrent that referenced this pull request Nov 24, 2024
* Fix torrent deleted without confirmation

- This commit fixes an error that torrent(s) get deleted without
  confirmation, even if the option is checked in the options.
  Previously, the delete action worked as expected using the delete
  button in the top menu, asking for confirmation before taking
  actual action. However, using the "remove" option in the context
  menu or the `DEL` key on the keyboard would got the torrent(s)
  removed immediately. They were just not calling the correct
  remove function.
- Besides the correction of delete events handler, two other things
  were carried out by the way, although not on the scope of the
  entire app but just around the functions that were adjusted in
  this fix.
  1. Some ident related issues were picked out by the way, like
  mixing spaces with tabs on the same line.
  2. Documentations were added to some of the JS functions, according
  to my own understanding of the function. They might be incorrect,
  but can be polished while the project grows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete Key does not prompt a "Remove Torrent" confirmation, even with the option checked in.
2 participants