From 37244e36326d0e549d874ab62f9d2cdc5ca624ce Mon Sep 17 00:00:00 2001 From: Vaqxai Date: Tue, 28 Nov 2023 14:50:19 +0100 Subject: [PATCH] egui_extras: Add more years for datepicker (#3599) Birthdates really needed this Kinda closes [](https://github.com/emilk/egui/issues/3597). --- crates/egui_extras/src/datepicker/popup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui_extras/src/datepicker/popup.rs b/crates/egui_extras/src/datepicker/popup.rs index d8dd4672..d4c23702 100644 --- a/crates/egui_extras/src/datepicker/popup.rs +++ b/crates/egui_extras/src/datepicker/popup.rs @@ -79,7 +79,7 @@ impl<'a> DatePickerPopup<'a> { ComboBox::from_id_source("date_picker_year") .selected_text(popup_state.year.to_string()) .show_ui(ui, |ui| { - for year in today.year() - 5..today.year() + 10 { + for year in today.year() - 100..today.year() + 10 { if ui .selectable_value( &mut popup_state.year,