mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Calendar: Make on_month_click capture the view_month_action's RefPtr
This commit is contained in:
parent
0d66a80a0f
commit
061061bd9c
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/0GreenClover0
Commit: 061061bd9c
Pull-request: https://github.com/SerenityOS/serenity/pull/20565
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ ErrorOr<NonnullRefPtr<CalendarWidget>> CalendarWidget::create(GUI::Window* paren
|
|||
|
||||
widget->create_on_tile_doubleclick();
|
||||
|
||||
calendar->on_month_click = [&] {
|
||||
calendar->on_month_click = [view_month_action] {
|
||||
view_month_action->set_checked(true);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue