From 63b03c6b36c7b9ae9c7b6cf8063445146b4f8210 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Fri, 4 Jan 2019 17:40:59 +0100 Subject: Explicit calendar and todo view configuration The configuration settings for calendar view (monthly/weekly) and todo view (hide/show completed) used to be saved automatically on calcurse exit, with values taken from the current interactive settings. They could not be set explicitly in the configuration menues. Configuration settings are no longer saved on program exit, but on exit from the configuration menu. This means that the saved values are those that were current when the configuration menu was entered. To change a saved value, you must set the view as desired and then enter/exit the configuration menu. The preferred calendar and todo views are no longer automatically taken from the interactive settings, but are explicitly set in the general options menu. Default values are monthly view and hide completed view. Signed-off-by: Lars Henriksen Signed-off-by: Lukas Fleischer --- src/vars.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vars.c') diff --git a/src/vars.c b/src/vars.c index 4e51b98..80e8e5c 100644 --- a/src/vars.c +++ b/src/vars.c @@ -120,6 +120,8 @@ void vars_init(void) const char *ed, *pg, *mt; /* Variables for user configuration */ + conf.cal_view = CAL_MONTH_VIEW; + conf.todo_view = TODO_HIDE_COMPLETED_VIEW; conf.confirm_quit = 1; conf.confirm_delete = 1; conf.auto_save = 1; -- cgit v1.2.3-54-g00ecf