aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.rs b/src/app.rs
index 1240877..f8797fc 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -287,16 +287,16 @@ impl View for App {
287 if self.habits.is_empty() { 287 if self.habits.is_empty() {
288 return EventResult::Consumed(None); 288 return EventResult::Consumed(None);
289 } 289 }
290 if self.habits[self.focus].view_mode() == ViewMode::Month { 290 if self.habits[self.focus].view_mode() == ViewMode::Week {
291 self.set_mode(ViewMode::Day) 291 self.set_mode(ViewMode::Day)
292 } else { 292 } else {
293 self.set_mode(ViewMode::Month) 293 self.set_mode(ViewMode::Week)
294 } 294 }
295 return EventResult::Consumed(None); 295 return EventResult::Consumed(None);
296 } 296 }
297 Event::Char('V') => { 297 Event::Char('V') => {
298 for habit in self.habits.iter_mut() { 298 for habit in self.habits.iter_mut() {
299 habit.set_view_mode(ViewMode::Month); 299 habit.set_view_mode(ViewMode::Week);
300 } 300 }
301 return EventResult::Consumed(None); 301 return EventResult::Consumed(None);
302 } 302 }