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:
parent
691f8a6015
commit
ec12276079
@ -159,8 +159,6 @@ main (int argc, char **argv)
|
|||||||
io_load_todo ();
|
io_load_todo ();
|
||||||
io_load_app ();
|
io_load_app ();
|
||||||
wins_reinit ();
|
wins_reinit ();
|
||||||
if (notify_bar ())
|
|
||||||
notify_start_main_thread ();
|
|
||||||
if (conf.system_dialogs)
|
if (conf.system_dialogs)
|
||||||
{
|
{
|
||||||
wins_update (FLAG_ALL);
|
wins_update (FLAG_ALL);
|
||||||
@ -169,6 +167,10 @@ main (int argc, char **argv)
|
|||||||
inday = *day_process_storage (0, 0, &inday);
|
inday = *day_process_storage (0, 0, &inday);
|
||||||
wins_slctd_set (CAL);
|
wins_slctd_set (CAL);
|
||||||
wins_update (FLAG_ALL);
|
wins_update (FLAG_ALL);
|
||||||
|
|
||||||
|
/* Start miscellaneous threads. */
|
||||||
|
if (notify_bar ())
|
||||||
|
notify_start_main_thread ();
|
||||||
calendar_start_date_thread ();
|
calendar_start_date_thread ();
|
||||||
if (conf.periodic_save > 0)
|
if (conf.periodic_save > 0)
|
||||||
io_start_psave_thread ();
|
io_start_psave_thread ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user