Add configuration option to set a default panel
This allows for customizing the panel that is selected by default when calcurse is started. Note that this patch doesn't add any documentation. Also, this configuration option currently cannot be configured using the configuration menu. Implements FR#19. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -549,6 +549,7 @@ int main(int argc, char **argv)
|
||||
|
||||
vars_init();
|
||||
wins_init();
|
||||
/* Default to the calendar panel -- this is overridden later. */
|
||||
wins_slctd_set(CAL);
|
||||
notify_init_bar();
|
||||
wins_reset_status_page();
|
||||
@@ -569,7 +570,7 @@ int main(int argc, char **argv)
|
||||
io_startup_screen(no_data_file);
|
||||
}
|
||||
inday = *day_process_storage(0, 0, &inday);
|
||||
wins_slctd_set(CAL);
|
||||
wins_slctd_set(conf.default_panel);
|
||||
wins_update(FLAG_ALL);
|
||||
|
||||
/* Start miscellaneous threads. */
|
||||
|
||||
Reference in New Issue
Block a user