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
GUI Notifications issue when debug logging is OFF #14583
Comments
I see the same behaviour on Linux (Ubuntu) as well. Just to mention that it's not a Windows-only problem. |
This issue does not occur on macOS. |
@piejanssens @DaVukovic are you sure it would be correct for the new notification to hide the previous one? what if they come from different sources? In other apps usually notifications stack in some way next to each other. |
In case of subtitles the only correct scenario is that you see the language you switch to immediately. Right now I'm completely lost as soon as I press next subtitle, next subtitle I have no visual feedback and need to wait for the subtitle to appear on screen to see if it's the language I'm looking for or not. One possible implementation would be to distinguish between notifications that are triggered by user input (these would go to the front of the queue and replace other notification of this type in case there is still one on screen) vs other (these queue up, each with their own screen time to shine). |
@piejanssens How do you switch subtitles? I can reproduce with the keymap example. But not with subtitles. When I press |
@pkerling I'm using a Harmony Hub connected via BT. |
nvm I think I have the issue, toasts have a queue and all but the redraw is missing when the text is short, so you see the first message all the time |
Awesome! I hope the fix is not to complicated. |
When the label text is updated but there is only one text and it is so short that it does not scroll, `MarkDirtyRegion()` is never called. The old text will then stay there and not get updated. Fixes #14583
@piejanssens Please test #15097 |
@pkerling Happy to test, but where do I download the bins? |
@piejanssens should be there now |
Fix is good. |
I can confirm that the issue is fixed with your PR. |
I originally noticed an issue with the notifications when I was switching subtitles. I would expect to see the next subitlte language notification to appear immediatly on screen and be allowed to switch languages faster than the notifications appear and dissappear on screen. This is currently not the case.
I did a test with a key map that shows a very odd difference between debug logging ON and debug logging OFF.
When debug logging is OFF and you trigger multiple notifications in close succession it only shows the first (and sometimes the second), but not the others. When debug logging is turned ON the latest notification will be shown immediately and it cancels the previous one. This latest behavior is what I expect and also the only behavior that works for circulating through subtitle languages.
To Reproduce
Steps to reproduce the behavior:
Using latest Kodi Nightly e78d2d4:
I also have the impression that the reaction time of pressing the Fn key and the notification being shown on screen should be less to make it feel more responsive.
Debuglog
!!! This issue does not occur when debug logging is on!!!
The debuglog can be found here: kodi.log
The text was updated successfully, but these errors were encountered: