1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Stop toaster notification circle flickering when notifications are all hidden.

(cherry picked from commit ab61624c78)
This commit is contained in:
SaracenOne
2023-02-27 02:33:49 +00:00
committed by Yuri Sizov
parent 94db7f866b
commit d929784491

View File

@@ -90,10 +90,10 @@ void EditorToaster::_notification(int p_what) {
} }
// Hide element if it is not visible anymore. // 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(); element.key->hide();
needs_update = true; 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(); element.key->show();
needs_update = true; needs_update = true;
} }