mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Stop toaster notification circle flickering when notifications are all hidden.
This commit is contained in:
parent
1bd0b296e1
commit
ab61624c78
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user