Refactor startup screen branch

Removes the pointless first parameter to io_startup_screen() and saves
one wins_update() call if system dialogs are disabled.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-04-12 23:40:35 +02:00
parent c65ccb0e77
commit 691f8a6015
3 changed files with 14 additions and 17 deletions

View File

@@ -161,8 +161,11 @@ main (int argc, char **argv)
wins_reinit ();
if (notify_bar ())
notify_start_main_thread ();
wins_update (FLAG_ALL);
io_startup_screen (conf.system_dialogs, no_data_file);
if (conf.system_dialogs)
{
wins_update (FLAG_ALL);
io_startup_screen (no_data_file);
}
inday = *day_process_storage (0, 0, &inday);
wins_slctd_set (CAL);
wins_update (FLAG_ALL);