Skip to content
Snippets Groups Projects
Commit 03c892d0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Reload the lists after the list list is modified

parent ee4ef92c
Branches
Tags
No related merge requests found
Pipeline #8090 passed
...@@ -2971,7 +2971,7 @@ write_webgets(void) ...@@ -2971,7 +2971,7 @@ write_webgets(void)
strListFree(&ini_file); strListFree(&ini_file);
} }
static void static bool
edit_web_lists(void) edit_web_lists(void)
{ {
static int cur = 0; static int cur = 0;
...@@ -3073,6 +3073,7 @@ edit_web_lists(void) ...@@ -3073,6 +3073,7 @@ edit_web_lists(void)
if (changed) { if (changed) {
write_webgets(); write_webgets();
} }
return changed;
} }
/* /*
...@@ -3835,7 +3836,9 @@ show_bbslist(char *current, int connected) ...@@ -3835,7 +3836,9 @@ show_bbslist(char *current, int connected)
free(copied); free(copied);
return NULL; return NULL;
case 0: /* Edit Web Lists */ case 0: /* Edit Web Lists */
edit_web_lists(); if (edit_web_lists())
load_bbslist(list, BBSLIST_SIZE, &defaults, settings.list_path, sizeof(settings.list_path), shared_list,
sizeof(shared_list), &listcount, &opt, &bar, current ? strdup(current) : NULL);
break; break;
case 1: /* Edit default connection settings */ case 1: /* Edit default connection settings */
edit_list(NULL, &defaults, settings.list_path, true); edit_list(NULL, &defaults, settings.list_path, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment