From 6dc37088cf69bacd9dafc2e5fe47066894c29d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 8 Mar 2021 10:37:40 +0100 Subject: [PATCH] Fix error when playback finishes during controls reveal animation --- src/revealers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/revealers.js b/src/revealers.js index fea10302..46e16092 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -315,6 +315,8 @@ class ClapperControlsRevealer extends Gtk.Revealer { if(this.child_revealed) { const clapperWidget = this.root.child; + if(!clapperWidget) return; + const [width, height] = this.root.get_default_size(); clapperWidget.player.widget.height_request = -1;