diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit b6e07a91d21e6f3d070b6c5183ebb956b84a39c6
parent c9ffd3441c0dc0e598fc6e47341e3c9577c0bd5d
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 17 Oct 2021 23:15:33 +0200

fix confirmation dialog

Diffstat:
Msrc/caldav.c | 21+--------------------
1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/src/caldav.c b/src/caldav.c @@ -587,25 +587,6 @@ void put_event(struct tm* date, const char* dir, size_t dir_size, char* calendar } } -void* show_progress(void* vargp){ - WINDOW* header = (WINDOW*) vargp; - mvwprintw(header, 0, COLS - CAL_WIDTH - ASIDE_WIDTH - 11, " syncing "); - for(;;) { - mvwprintw(header, 0, COLS - CAL_WIDTH - ASIDE_WIDTH - 10, "|"); - wrefresh(header); - usleep(200000); - mvwprintw(header, 0, COLS - CAL_WIDTH - ASIDE_WIDTH - 10, "/"); - wrefresh(header); - usleep(200000); - mvwprintw(header, 0, COLS - CAL_WIDTH - ASIDE_WIDTH - 10, "-"); - wrefresh(header); - usleep(200000); - mvwprintw(header, 0, COLS - CAL_WIDTH - ASIDE_WIDTH - 10, "\\"); - wrefresh(header); - usleep(200000); - } -} - /* * Sync with CalDAV server. * Returns the answer char of the confirmation dialogue @@ -837,7 +818,7 @@ int caldav_sync(struct tm* date, // ask for confirmation strftime(dstr, sizeof dstr, CONFIG.fmt, date); - mvwprintw(header, 0, 0, "Remote event is more recent. Sync entry '%s' and overwrite local file? [(Y)es/(a)all/(n)o/(c)ancel] ", dstr); + mvwprintw(header, 0, 0, "Remote event is more recent. Sync entry '%s' and overwrite local file? [(Y)es/(a)ll/(n)o/(c)ancel] ", dstr); char* i; bool conf = false; while (!conf) {