aboutsummaryrefslogtreecommitdiff
path: root/src/gui/app.rs
diff options
context:
space:
mode:
authorJoris2022-03-19 22:03:58 +0100
committerJoris2022-03-19 22:03:58 +0100
commit35cc74578e969bae4812afd2ff041eba3746142d (patch)
treec0ef18d3c81554f0e70c91fcb1006d587470365c /src/gui/app.rs
parent199624dc03ead28ddc7454147457512d9568c593 (diff)
downloadcalendar-35cc74578e969bae4812afd2ff041eba3746142d.tar.gz
calendar-35cc74578e969bae4812afd2ff041eba3746142d.tar.bz2
calendar-35cc74578e969bae4812afd2ff041eba3746142d.zip
Allow to repeat an event until a specific date
Also provide a shortcut to modify a repetead event from a specific occurence. This set the end repetition date under the hood and create a new repeated event.
Diffstat (limited to 'src/gui/app.rs')
-rw-r--r--src/gui/app.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/app.rs b/src/gui/app.rs
index 9f37301..8cd7096 100644
--- a/src/gui/app.rs
+++ b/src/gui/app.rs
@@ -16,8 +16,8 @@ pub struct App {
pub conn: Rc<Connection>,
pub window: Rc<gtk::ApplicationWindow>,
pub grid: gtk::Grid,
- pub events: Vec<Event>,
- pub recurring_events: Vec<Event>,
+ pub events: Vec<Event>, // TODO: use Hashmap to have fast access to events by id ?
+ pub recurring_events: Vec<Event>, // TODO: use Hashmap to have fast access to events by id ?
pub today: NaiveDate,
pub start_date: NaiveDate,
pub end_date: NaiveDate,