Tooltip: null check text_actor before removing (#1293)

This commit is contained in:
Danielle Foré 2021-11-06 10:59:39 -07:00 committed by GitHub
parent 67de38d4be
commit ebfa8ea45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,9 @@ public class Gala.Tooltip : Clutter.Actor {
}
// First set the text
remove_child (text_actor);
if (text_actor != null) {
remove_child (text_actor);
}
text_actor = new Clutter.Text () {
color = text_color,