From ab61624c786f0e1556eacf374eaca2838edb9bec Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Mon, 27 Feb 2023 02:33:49 +0000 Subject: [PATCH] Stop toaster notification circle flickering when notifications are all hidden. --- editor/editor_toaster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_toaster.cpp b/editor/editor_toaster.cpp index 73b645f351d..10c3e963af1 100644 --- a/editor/editor_toaster.cpp +++ b/editor/editor_toaster.cpp @@ -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; }