egui_extras: Add more years for datepicker (#3599)
Birthdates really needed this Kinda closes [<https://github.com/emilk/egui/issues/3597>](https://github.com/emilk/egui/issues/3597).
This commit is contained in:
parent
a1f3c71b7f
commit
37244e3632
|
|
@ -79,7 +79,7 @@ impl<'a> DatePickerPopup<'a> {
|
||||||
ComboBox::from_id_source("date_picker_year")
|
ComboBox::from_id_source("date_picker_year")
|
||||||
.selected_text(popup_state.year.to_string())
|
.selected_text(popup_state.year.to_string())
|
||||||
.show_ui(ui, |ui| {
|
.show_ui(ui, |ui| {
|
||||||
for year in today.year() - 5..today.year() + 10 {
|
for year in today.year() - 100..today.year() + 10 {
|
||||||
if ui
|
if ui
|
||||||
.selectable_value(
|
.selectable_value(
|
||||||
&mut popup_state.year,
|
&mut popup_state.year,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue