-
-
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
Implement Advanced Saving Management subsystem #4784
Conversation
@sledgehammer999, @qbittorrent/qbittorrent-frequent-contributors With regard to "What has not been done" above... |
a0f9e98
to
18a3a41
Compare
@zywo Thank you. Fixed. |
7e84a8a
to
431ee3d
Compare
IMO QTreeView is more suitable for display categories. For example: Video (3) = Video (3) |
You're right and I agree with you. But I was going to implement only basic support for this feature (see #4696) and I did it. You (or anyone else) can improve GUI part after this PR will be merged. It will also need support in the WebUI (I implemented only basic compatibility). @naikel maybe you? |
There is one more thing I would like to discuss. Now I allow you to have categories of the form "some/category/name" even if the subcategories support is disabled. Whether that be so or should I change it? |
Yeah, the UI needs reworking :P The 3rd image can be made much more compact if you use comboboxes instead of radioboxes. But this is the last thing. I can do it. |
I'm still making some minor changes here. So you tell me when you will start to review this and I have to stop to change it. @sledgehammer999 I'm asking you to consider the following first (so I just found out, I need to change it or not):
|
cab8cf9
to
dbd2bb9
Compare
It is almost certain that today I will not review this.
Actually I don't know how your current work behaves AND I don't use labels anyway so my opinion on this might be flawed. But here is what I am thinking: If those slashes don't interfere with your code that handles changing of the path, guessing which part is the path and which part is the label etc I vote for leaving them as is. |
Okay, I'll leave it as is for now. This can be corrected later without much difficulty. |
Add torrent dialog seems to be buggy at the moment in your implementation. It doesn't show free space on drive and default save path is empty until mode is switched. |
Damn, I forgot to uncomment one line.
You just don't know the prerequisites for my changes. See #4696. |
Does this resolve #4786? |
Thanks for the huge work involved in this. |
Thank you for your cooperation.
Initially I use |
@glassez anyway, on a more serious note I have discovered a bug.
The path is appended to the working dir. After that the torrent has the error status. If I look at the "General" button, the savepath is reported as |
For some reason I began to keep the path without trailing slash. I had no problems with it. Apparently, libtorrent recognizes a path consisting only of a drive letter such as relative, which is not correct. |
@evsh, continuing our discussion about qBittorrent (code) design/architecture... The first thing I want to say here (so our subsequent dialogue was productive). If you are planning to improve the design (and not just to chew the fat on this subject), this is a separate problem. I'm all for it! Then you should create a separate Issue for this, to present there your point of view, to introduce some model of the proposed design (to start in General terms with further detail) and we will start a constructive discussion about it. @sledgehammer999 you are welcome for comments too. |
@glassez since you admitted that you aren't great with GUIs, I didn't stall for the GUI before merging. |
No. They talk about different things. BTW, we need implement categories edit dialog which allows us to assign/change category save paths (add/remove categories too). It should allow us to assign both absolute paths and relative. |
qbittorrent_3.4.0alpha_20160413_b13c991f4b6_setup.exe if you click on what is already selected, "simple" or "advanced", the dot will disappear. |
just fixed in #5137, please test. |
@Chocobo1 |
I can't see where exactly it is fixed... :( |
It's obvious from the image tekko posted: #4784 (comment) My commit: 8366fce |
@Chocobo1 I just could not understand what changes fix it. Now I see it. |
As I mentioned in #5201, I started working on enhancing this feature as I love this idea and wanted to make it more robust—I hope you don't mind. I'm just working on the GUI right now (see example below). I had to re-work the way categories are saved a bit (the value of a category is no longer a QString and is now a QVariantMap itself to allow the storage of all the settings). I'll wire up the GUI to the internals later as this is my first exposure to the qBittorrent codebase and it will take me some time to get acquainted (it does already reflect save path changes seeing as the functions were already graciously present in the code). |
@pyarmak maybe along the way you will implement showing categories in a tree view (when sub categories are enabled)? |
@glassez I will certainly look into it! I was actually thinking about that last night and have some helpers written for it. I'll get to that once I'm done with the options dialog (I'm currently done with the most of the gui and have wired up the downloads tab). |
@sledgehammer999 Yeah, my bad, I did start a new discussion in #5201 so if you have any suggestions you're welcome to direct them there. As for your #5213 it should be just fine seeing as I'm not touching the actual options dialog but rather adding a new one. |
What was done:
What has not been done: