-
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
Fixes #1421: Add "delete server" button to connect dialog #3159
Fixes #1421: Add "delete server" button to connect dialog #3159
Conversation
46a895f
to
e55f69e
Compare
e55f69e
to
23ac5a7
Compare
@gilgongo Could you please comment on the UX here? How can we avoid confusion with the connect button? |
23ac5a7
to
e655609
Compare
Personally, I would prefer something like a red X instead of a black backspace symbol. |
Should we change the Server UI, too? (I didn't find a button with a red X on any more meaningful (I think "stop" or "wrong" rather than "delete") - though I admit the symbol chosen isn't particularly obvious.) |
If it's changed here, it should be changed everywhere |
Ah, I hadn't remembered it is already used in the Server UI (I so seldom use a server with a GUI!) |
Yeah, it means "clear field" there (where the user can't directly type into the field), so there is a distinction. |
e655609
to
56fae59
Compare
✗ https://www.compart.com/en/unicode/U+2717 ⊗ https://unicodeplus.com/U+2297 Could be options Not preferred but possible: https://www.compart.com/en/unicode/U+1F5D1 https://stackoverflow.com/questions/5353461/unicode-character-for-x-cancel-close |
As it says on the last reference, "X" tends to imply cancel - rather than remove or delete. So I'm not keen on anything looking just like an "X". The character I've used is called "erase to the left", which is - essentially - what it does. https://www.fileformat.info/info/unicode/char/232b/index.htm |
Agree. You just don't see that often. |
Just a behavioral discussion point: If the entry is emptied with backspace, and then the new button is clicked, we jump to another entry from the list. I wouldn't expect that. Maybe the button should be grayed out then? Or just do nothing? |
(Also if we add this, the UX should be the same for custom directories, I'd say.) |
That would want a separate issue raised... though I agree. The existing solution is inelegant. |
"Do nothing" is possible -- currently the redisplay happens anyway (as if the connect window had been closed then opened again). I'd rather not have to catch every update to the text in the field and decide whether or not to disable the button. |
56fae59
to
bd682e5
Compare
Ok. Then I think the do nothing should be implemented. |
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.
Seems to work fine now.
bd682e5
to
60e8240
Compare
Done. |
098584d
to
c349d19
Compare
Reverting to 10c5931, pretty much, but with width 24, bold and using the unicode glyph directly. Linux local builds: QMake version 3.1, Qt version 6.6.0 and Qt version 5.15.2 Windows github artifact: Given that Qt seems unable to provide a consistent, cross-platform experience for this, we're going to have to compromise. |
BTW: can you look at your git configuration? I believe something is wrong with your GPG key. |
c349d19
to
327a07f
Compare
I've been trying to fix it... I know why it broke, just too long since I first got it working to remember what needs doing. |
I believe it's in GitHubs' documentation about GPG keys. |
Not the bit I needed... I don't know if I've fixed it until I create a new commit, though... |
30b2024
to
1281d3a
Compare
1281d3a
to
d5d1ab0
Compare
@pljones what's the current status of this? I've just built it on my Pi and it seems to work fine. I noticed that the branch I also happened to notice that in Settings / Advanced Setup there is a combi-box with drop-down for multiple Custom Directories that could usefully have a similar button. I currently have two entries in that list, with no way I can see to remove one of them. EDIT: I've just discovered that in the Custom Directories drop-down, I can backspace over the entry I don't want, and then click on the drop-down arrow, and the entry does get removed from the list. However, the same trick didn't work in the Connect dialog. |
I believe it's ok except for the button. But it's not too important. |
Yes, this was the requested method for the Custom Directories drop-down, with a separate, different requested method for the Connect dialog. I think it would better if they both worked the same, but this request is only about the Connect dialog and, if the Custom Directories drop-down needs changing, that needs a new issues/PR raised. |
Probably going to approve it like this. I'm a bit unsure about the UX though the backspace icon is used in the server too, but maybe there's something clearer. |
jamulussoftware/jamuluswebsite#1002 raised for documentation. |
Short description of changes
Adds a "delete server" tool button to the connect dialog, in the same style as the server dialog, to delete the currently selected server. There's no "undo".
Selected server gets deleted. Next server in list is then current in field. On exit, the updated list is saved.
CHANGELOG: Client: Add "delete server" button to connect dialog
Context: Fixes an issue?
Fixes #1421
Does this change need documentation? What needs to be documented and how?
Yes - screenshots and translation strings need updating.
Status of this Pull Request
Tested locally and appears to work as expected.
What is missing until this pull request can be merged?
Code and UI review.
Checklist