summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-12 23:40:35 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-12 23:43:20 +0200
commit691f8a6015bafcf6ed4f99a3649d428fb7a8e915 (patch)
treea32317f1472bd99fd1d05c94653ecad1b1d7caa8 /src/calcurse.c
parentc65ccb0e77a0f03e06cd2bb6965ec41863d37ae2 (diff)
downloadcalcurse-691f8a6015bafcf6ed4f99a3649d428fb7a8e915.zip
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>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index f681d12..37c3cac 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -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);