Merge pull request #74017 from SaracenOne/fix_toaster_notification_flicker

Stop toaster notification circle flickering
This commit is contained in:
Rémi Verschelde 2023-03-02 11:24:14 +01:00
commit c46716118f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -90,10 +90,10 @@ void EditorToaster::_notification(int p_what) {
}
// Hide element if it is not visible anymore.
if (modulate_fade.a <= 0 && element.key->is_visible()) {
if (modulate_fade.a <= 0.0 && element.key->is_visible()) {
element.key->hide();
needs_update = true;
} else if (modulate_fade.a >= 0 && !element.key->is_visible()) {
} else if (modulate_fade.a > 0.0 && !element.key->is_visible()) {
element.key->show();
needs_update = true;
}