ui: file list -> fixes opening links

This commit is contained in:
2026-03-19 15:20:07 +02:00
parent 2a08660f1f
commit 9ddebad136
10 changed files with 57 additions and 20 deletions
+4 -1
View File
@@ -136,11 +136,14 @@ void wait_register(query_args_t *q_args) {
int upload_confirm_cb(app_t *app, char *query) {
if (!strncmp("finished\n", query, sizeof("finished\n") - 1)) {
ui_file_list_t *fui = (ui_file_list_t *)app->query_args->file_list_ui;
notification("File upload", dc_normal, "File %s is uploaded to the server!",
app->query_args->file->name);
clear_file_in_query(app->query_args);
app->query_args->state = WAIT_CLIENT;
app->query_args->state = S_FILE_LIST;
app->modal.needs_destroy = true;
reset_file_list(fui);
server_send_string(app->query_args, "file list %u %u\n", fui->max_lines, 1);
return 0;
}
return 1; /* TODO: Error case */