mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-04 19:55:32 +00:00
The `view_frame_action` variable only exists for the duration of `initialize_menubar()`, so calling it in `m_preview_window->on_close` would crash. This fixes that by storing the action pointer inside MainWidget. (And storing the `view_window_action` too because it felt weird storing one and not the other.)