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

WebUI: Implement double-click behavior controls #21000

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

HanabishiRecca
Copy link
Contributor

@HanabishiRecca HanabishiRecca commented Jun 26, 2024

This PR implements double-click behavior controls for the WebUI, similar to the desktop GUI.
Closes #20436.

But as I discussed in #20436 (comment), despite the same names, this is not the same settings. Because existing options of the GUI are not applicable for the WebUI, they are implemented as independent standalone settings.

Also the settings implemented as selectors, despite having only 2 options. They actually could be implemented as check boxes instead, but:

  1. I think it is better to be kinda consistent with the GUI.
  2. Allows for more options to be easily added in the future.
Screenshot

screenshot

@glassez
Copy link
Member

glassez commented Jun 28, 2024

Personally I dislike idea of storing WebUI client settings as regular qBittorrent settings. I would consider any WebUI client (including official one) as separate client application.
Now I do not insist on this point of view, because we have a very large legacy in the form of shared options between regular desktop app UI and WebUI, so it requires a complete redesign.

@HanabishiRecca
Copy link
Contributor Author

HanabishiRecca commented Jun 28, 2024

I followed existing logic to make this. If you think this settings should be stored in browser local storage instead, I'm not against it. In fact it's even easier that way.

@HanabishiRecca
Copy link
Contributor Author

Ok, I made it using local storage. The implementation is very simple now.

@HanabishiRecca HanabishiRecca force-pushed the webui-dblclick branch 2 times, most recently from ec70553 to 3aa9cee Compare June 28, 2024 18:49
Chocobo1
Chocobo1 previously approved these changes Jun 28, 2024
Copy link
Member

@Chocobo1 Chocobo1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange that CI didn't run..

src/webui/www/private/views/preferences.html Outdated Show resolved Hide resolved
@HanabishiRecca
Copy link
Contributor Author

Strange that CI didn't run..

No idea why. #21007 had the same state back then.

@Chocobo1 Chocobo1 added the WebUI WebUI-related issues/changes label Jul 5, 2024
@Chocobo1 Chocobo1 added this to the 5.1 milestone Jul 5, 2024
@Chocobo1 Chocobo1 merged commit b52fa98 into qbittorrent:master Jul 5, 2024
14 checks passed
@Chocobo1 Chocobo1 changed the title Implement double-click behavior controls for the WebUI WebUI: Implement double-click behavior controls Jul 5, 2024
@Chocobo1
Copy link
Member

Chocobo1 commented Jul 5, 2024

@HanabishiRecca
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

double click in webui stops/starts torrents , can that be changed ?
3 participants