aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form
diff options
context:
space:
mode:
authorJoris2022-02-27 13:25:27 +0100
committerJoris2022-02-27 13:25:27 +0100
commite84d7e08c780133bd16a5a320bb786b5d22fddad (patch)
tree75164f20d5a8200a401862fe081e00a096051838 /src/gui/form
parenta83697a4d919c2b8307de10f60df5a4ae32f3a69 (diff)
Change week with arrow keys
Diffstat (limited to 'src/gui/form')
-rw-r--r--src/gui/form/repetition.rs4
1 files changed, 3 insertions, 1 deletions
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<Option<Repetition>, 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 {