mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Calendar: Don't assign next_month button variable to add_event button
This commit is contained in:
@@ -49,10 +49,10 @@ CalendarWidget::CalendarWidget()
|
||||
update_calendar_tiles(m_target_year, m_target_month);
|
||||
};
|
||||
|
||||
m_prev_month_button = add<GUI::Button>();
|
||||
m_prev_month_button->set_text("Add Event");
|
||||
m_prev_month_button->set_relative_rect(475, 13, 100, 25);
|
||||
m_prev_month_button->on_click = [this] {
|
||||
m_add_event_button = add<GUI::Button>();
|
||||
m_add_event_button->set_text("Add Event");
|
||||
m_add_event_button->set_relative_rect(475, 13, 100, 25);
|
||||
m_add_event_button->on_click = [this] {
|
||||
AddEventDialog::show(m_calendar, window());
|
||||
};
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ private:
|
||||
RefPtr<GUI::Label> m_selected_date_label;
|
||||
RefPtr<GUI::Button> m_prev_month_button;
|
||||
RefPtr<GUI::Button> m_next_month_button;
|
||||
RefPtr<GUI::Button> m_add_event_button;
|
||||
|
||||
class CalendarTile final : public GUI::Frame {
|
||||
C_OBJECT(CalendarTile)
|
||||
|
||||
Reference in New Issue
Block a user