-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
Put recent connections in toplevel applet menu #1652
Conversation
I tried it and outside of duplicated entires for devices and it being mixed in with the recent connections I worry about the exit menu running off the screen. How are we going to make sure when someone has 24 set as the max recent connections exit is still accessible? I was thinking of adding an expander when we reach, let's say 6 recent, and hide older ones. This however is going to complicate the current design so yeah.. not sure what's worse. |
I'll test with 24 and see how the menu behaves. |
When I considered #1558 I thought about an adapting expander as well, but came to the conclusion that just adding everything to the top level should be fine. Some arguments for "don't worry about large menus":
I can imagine that it might get rather nasty on low resolutions, though, but I guess at least as people do not increase the default maximum, they should be fine. Duplicate devices? 🤔 Ah, you mean standard connect vs recent connection items? |
Just checked a very low resolution and indeed multiple status icon menus - including our current one - started scrolling (mate-panel). Also, it looks like I did not remember correctly regarding nm-applet. It shows 5 networks and puts more into a submenu. In any case, if we talk about adding 5 items on toplevel, plus a submenu item, so that it's up to 6 vs. just adding all items on toplevel that's the same number in 99.9 % of all cases as 6 is exactly our default maximum of recent connections and I don't think it's worth addressing the very special case of an increased maximum and a low resolution just to avoid scrolling in the menu if we're lucky. |
Ouch, yeah, stupid me. The position indexes start to overlap at some point. 🤦 |
2cd4a55
to
7d30555
Compare
7d30555
to
0821add
Compare
0821add
to
b7a1033
Compare
I cannot replicate any duplication. 🤔
again? |
b7a1033
to
d9d0d9a
Compare
Kudos, SonarCloud Quality Gate passed!
|
Eeuh, wait, i get deja Vu, i may have done "it" again 😮💨 Let me check. |
ebfebb7
to
147c27e
Compare
Can you rebase this one last time :-). I'll make sure to test this weekend. |
147c27e
to
2232fdd
Compare
The item IDs got misused as list indexes there which does not fit blueman-project#1652.
Other applets like NetworkManager's do not try to keep menu small, so why should blueman... Closes blueman-project#1558
2232fdd
to
2ae3756
Compare
Kudos, SonarCloud Quality Gate passed!
|
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.
Made sure to properly install and restart 😁 . All looks good now.
The item IDs got misused as list indexes there which does not fit #1652.
The item IDs got misused as list indexes there which does not fit blueman-project#1652.
The item IDs got misused as list indexes there which does not fit #1652.
1297d88 requires this to be available but it is not as it is part of blueman-project#1652. This backports the relevant changes.
Other applets like NetworkManager's do not try to keep menu small, so why should blueman...
Closes #1558
This was lying around for a while now. I'm not happy with the presentation yet and don't have any better idea for it but in general this should be good.