gpui-component/crates
Moulberry c62bb8b6a1
notification: Fix close animation not working when closed from content (#1578)
Currently, if dismiss is called from the content_builder or
action_builder, the closing animation doesn't play.

This is because the callback happens after the `closing` variable is
set, so the animation will only start on the next frame, (and for some
reason notify() doesn't trigger another frame?).

This change makes it so that the content_builder is called first, so the
closing animation starts playing immediately on the same frame.

This also adds a check to dismiss to prevent spawning unnecessary
futures if it is called multiple times
2025-11-13 00:12:01 +08:00
..
macros Bump v0.4.0-preview2 2025-11-12 15:16:49 +08:00
reqwest_client Bump v0.4.0-preview2 2025-11-12 15:16:49 +08:00
story root: Fix Root use text size may override default text color. (#1576) 2025-11-12 19:05:30 +08:00
ui notification: Fix close animation not working when closed from content (#1578) 2025-11-13 00:12:01 +08:00