Workaround GTK4 revealers transition switch bug

Changing transition in middle or when not fully revealed has dire consequences, seems to be a GTK4 bug. Workaround this bug by switching top revealer transition type only when fully revealed.
This commit is contained in:
Rafał Dzięgiel
2021-02-25 09:24:02 +01:00
parent d2d43db2c9
commit a0cd05fbe3
2 changed files with 19 additions and 8 deletions

View File

@@ -333,9 +333,11 @@ class ClapperWidget extends Gtk.Grid
updateTime()
{
const revealerTop = this.revealerTop;
if(
!this.revealerTop.visible
|| !this.revealerTop.revealerGrid.visible
!revealerTop.visible
|| !revealerTop.revealerGrid.visible
)
return null;