From e84d7e08c780133bd16a5a320bb786b5d22fddad Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 27 Feb 2022 13:25:27 +0100 Subject: Change week with arrow keys --- src/gui/form/repetition.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/form') diff --git a/src/gui/form/repetition.rs b/src/gui/form/repetition.rs index 7236016..accb091 100644 --- a/src/gui/form/repetition.rs +++ b/src/gui/form/repetition.rs @@ -134,7 +134,9 @@ pub fn validate(model: &Model) -> Result, String> { Ok(Some(Repetition::Daily { period })) } else if model.monthly_radio.is_active() { let day = repetition::validate_day(&model.monthly_entry.buffer().text())?; - Ok(Some(Repetition::Monthly { day: DayOfMonth::Day { day } })) + Ok(Some(Repetition::Monthly { + day: DayOfMonth::Day { day }, + })) } else if model.first_day_radio.is_active() { let weekday = WEEKDAYS[model.first_day_dropdown.selected() as usize]; Ok(Some(Repetition::Monthly { -- cgit v1.2.3