diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-12 23:48:09 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-12 23:53:09 +0200 |
commit | ec1227607949a556a44d177b66a7b2d50f6cbc4d (patch) | |
tree | 871229fd6702a5e4b35d647c62400e80eaa2585a /src | |
parent | 691f8a6015bafcf6ed4f99a3649d428fb7a8e915 (diff) | |
download | calcurse-ec1227607949a556a44d177b66a7b2d50f6cbc4d.tar.gz calcurse-ec1227607949a556a44d177b66a7b2d50f6cbc4d.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/calcurse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 37c3cac..6c473c3 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -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 (); |