From e58e7411b539a9a0871b6397c9ff546a8cc76dee Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 7 Mar 2020 02:00:02 +0000 Subject: [PATCH] Update title string each time through the menu loop. Fixed but I think DigitalMan reported where the count of entries isn't updated after and add/delete until you change to the settings menu and back. --- src/syncterm/bbslist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c index 63858bed43..26ef25b20c 100644 --- a/src/syncterm/bbslist.c +++ b/src/syncterm/bbslist.c @@ -1,5 +1,6 @@ /* Copyright (C), 2007 by Stephen Hurd */ +#include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -1752,13 +1753,13 @@ struct bbslist *show_bbslist(char *current, int connected) uifc.list(WIN_T2B|WIN_RHT|WIN_EXTKEYS|WIN_DYN|WIN_ACT|WIN_INACT ,0,0,0,&sopt,&sbar,"SyncTERM Settings",connected?connected_settings_menu:settings_menu); for(;;) { - sprintf(list_title, "Directory (%d items)", listcount); if (quitting) { free(list); return NULL; } if (!at_settings) { for(;!at_settings;) { + sprintf(list_title, "Directory (%d items)", listcount); if (quitting) { free(list); return NULL; -- GitLab