-
Notifications
You must be signed in to change notification settings - Fork 225
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
Ability to delete Server and Directory from a list should be the same #3233
Comments
Hello ! I planned on implementing the first option given by @pljones. Is there anybody assigned yet ? Thanks in advance |
Hi @AdamGLIN, thanks for your comment and offer!
I agree that the first option is the one to go for. I'm not aware of anyone having been assigned, and I can't see any branch in @pljones' fork that relates to this. So I'd say go for it, submit the PR, and we'll review it. Thanks again! |
I added a horizontal box layout which include the box and the delete button. I wrote a fonction to implement the delete button. It works well when we change the focus with the mouse to add a new directory but I can't make the enter key work : it delete the input and nothing happend. I tried to add the QLineEdit::returnPressed signal but it changed nothing. I struggle to understand the former use of the QComboBox::activated signal since I commented it and nothing seems to have changed. TODO : Allowing to add directory via enter key. Improve spacers in the ui.
Hello, I just pushed to my branch. It works for the main part, I mostly followed this commit. However, I have some issues :
I have still things to improve such as the interface (boxes are not equally spaced), but I would like your opinion to continue this way ! Thanks for your time ! |
Thanks for working on it. I believe it's best you open a PR to allow easier review. It's always possible that there's a bug/inefficiency in the current code on master. |
I followed the suggestions made py @pljones and I changed a size hint of a spacer in the UI to make sure that everything is evenly spaced. TODO : Allowing adding directory via enter key
I used flags to allow the use of only one function for the delete button and the list itself, I deleted a ":" in the label (other labels didn't use ":") and I added a tabstop for the button
I added return in case the data isn't valid. I also added a ":" to avoid translations problems.
#3233 UI: Common method to delete server and custom directory entries
What is the current behaviour and why should it be changed?
In the Client:
<[X]
button is pressed.In the Server, on the Options tab:
In both cases, to clear the value, the
<[X]
button is pressed.The Settings Dialog, Advanced tab, Custom Directories list isn't as easy to use or obvious in how to remove an entry as the others.
Describe possible approaches
The fields in the Server are read-only, with a dialog to select a new value for the field. The dialog itself cannot be used to clear the value. So having the extra "clear" button is necessary.
The Client Connect dialog has used the same approach for the Server list.
The options are:
<[X]
button to the Advanced, Custom Directories list to allow deleting the selected value the same was as the Connect dialog and remove the existing method.<[X]
button to the Advanced, Custom Directories list to allow deleting the selected value the same was as the Connect dialog, whilst retaining the existing method.I don't think the Server buttons should be changed.
I think the best method is to switch the Advanced, Custom Directories list to use the
<[X]
button.Has this feature been discussed and generally agreed?
See #3159 (comment) for earlier discussion.
The text was updated successfully, but these errors were encountered: