summaryrefslogtreecommitdiff
path: root/src/io.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/io.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/io.c')
-rw-r--r--src/io.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/io.c b/src/io.c
index ded7889..2067dd0 100644
--- a/src/io.c
+++ b/src/io.c
@@ -988,23 +988,17 @@ io_check_data_files (void)
/* Draw the startup screen */
void
-io_startup_screen (unsigned show_dialogs, int no_data_file)
+io_startup_screen (int no_data_file)
{
- const char *welcome_mesg =
- _("Welcome to Calcurse. Missing data files were created.");
- const char *data_mesg = _("Data files found. Data will be loaded now.");
const char *enter = _("Press [ENTER] to continue");
- if (no_data_file != 0)
- {
- status_mesg (welcome_mesg, enter);
- wgetch (win[STA].p);
- }
- else if (show_dialogs)
- {
- status_mesg (data_mesg, enter);
- wgetch (win[STA].p);
- }
+ if (no_data_file)
+ status_mesg (_("Data files found. Data will be loaded now."), enter);
+ else
+ status_mesg (_("Welcome to Calcurse. Missing data files were created."),
+ enter);
+
+ wgetch (win[STA].p);
}
/* Export calcurse data. */