-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Switch revealer transition fixing re-appear #174
Conversation
I've tested this in elementary OS Juno and other platforms and I cannot reproduce the aforementioned issue ❇️ |
I have to admit that I can't explain why this is an issue. While creating a simple test / example I ran into another issue: |
This seems like a bit of a hack to me. Probably best to identify the cause more precisely. Maybe a race? I could not reproduce on my dev install of Juno - I'll try it on my vanilla install. No, could not reproduce on vanilla Juno either. |
Maybe throttle calls to set_icon or update_icon in the bluetooth indicator so that it doesnt called in the middle of a reveal? |
I could not reproduce on a vanilla Juno install either, until it was updated. |
"Untill"? So after updates you can? |
@peteruithoven Correct. After updates I can reproduce. |
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.
@peteruithoven Would it be better to set the orientation of the container then or maybe switch the container type? I agree with @jeremypw that this seems kind of hacky
@danrabbit which container though... This is the situation:
None of these have an orientation. I've tried setting the I've noticed I can also reproduce the issue by rapitly switching nightlight on off. You see it sometimes not showing up or even showing only half of the icon: @jeremypw I'll look into icon updates. |
@jeremypw the nightlight icon isn't actually updated when you enable/disable Night Light, that only impacts visibility ( |
Looks like commenting the delayed re-ordering fixes the issue: Removing the previous timeout and increasing the interval helps a great deal. But that means another arbitrary value, which could still give issues on slower systems and adds a delayed sudden jump in the indicators. Would be great if we could do something like: #155 |
Superseded by: #187 |
Fixes: elementary/wingpanel-indicator-bluetooth#64
After the bluetooth indicator disappears it doesn't properly re-appear.
This can be reproduced by running:
It seems to have something to do with the
RevealerTransitionType.SLIDE_LEFT
transition of theGtk.Reveal
that's used for every indicator.If I add an exception to the following list changing the Reveal transition to anything except SLIDE_LEFT or SLIDE_RIGHT there is no issue.
https://github.com/elementary/wingpanel/blob/master/src/Widgets/Panel.vala#L232-L251
If I switch the transition_type from right to left when the visibility of the indicator is toggled it also re-appears normally. Which is what I'm doing with this PR.