Remove artificial delay when saving data
This doesn't contribute to functionality or usability in any way. Keep the progress bar option but only show bars as long as the actual save operation is in progress. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
160f12687e
commit
ab4c4dee76
3
src/io.c
3
src/io.c
@ -136,7 +136,6 @@ static char *ical_recur_type[RECUR_TYPES] =
|
|||||||
static void
|
static void
|
||||||
progress_bar (progress_bar_t type, int progress)
|
progress_bar (progress_bar_t type, int progress)
|
||||||
{
|
{
|
||||||
#define SLEEPTIME 125000
|
|
||||||
#define NBFILES 4
|
#define NBFILES 4
|
||||||
#define NBEXPORTED 3
|
#define NBEXPORTED 3
|
||||||
#define LABELENGTH 15
|
#define LABELENGTH 15
|
||||||
@ -194,8 +193,6 @@ progress_bar (progress_bar_t type, int progress)
|
|||||||
custom_remove_attr (win[STA].p, ATTR_HIGHEST);
|
custom_remove_attr (win[STA].p, ATTR_HIGHEST);
|
||||||
wmove (win[STA].p, 0, 0);
|
wmove (win[STA].p, 0, 0);
|
||||||
wins_wrefresh (win[STA].p);
|
wins_wrefresh (win[STA].p);
|
||||||
(void)usleep (SLEEPTIME);
|
|
||||||
#undef SLEEPTIME
|
|
||||||
#undef NBFILES
|
#undef NBFILES
|
||||||
#undef NBEXPORTED
|
#undef NBEXPORTED
|
||||||
#undef LABELENGTH
|
#undef LABELENGTH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user