src/calcurse.c: Start all helper threads in one go

Makes our initialization code a tad cleaner and seems to reduce flicker
when starting calcurse (the notification bar is no longer drawn before
other windows are shown).

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-04-12 23:48:09 +02:00
parent 691f8a6015
commit ec12276079

View File

@ -159,8 +159,6 @@ main (int argc, char **argv)
io_load_todo ();
io_load_app ();
wins_reinit ();
if (notify_bar ())
notify_start_main_thread ();
if (conf.system_dialogs)
{
wins_update (FLAG_ALL);
@ -169,6 +167,10 @@ main (int argc, char **argv)
inday = *day_process_storage (0, 0, &inday);
wins_slctd_set (CAL);
wins_update (FLAG_ALL);
/* Start miscellaneous threads. */
if (notify_bar ())
notify_start_main_thread ();
calendar_start_date_thread ();
if (conf.periodic_save > 0)
io_start_psave_thread ();