ui: box fixes

This commit is contained in:
2026-05-06 18:22:38 +03:00
parent 933177491c
commit e5d4ff5c2a
4 changed files with 16 additions and 11 deletions
+5 -5
View File
@@ -91,8 +91,8 @@ void query_loop(app_t *app) {
}
}
/* process request from the server */
if (FD_ISSET(sd, &readfds)) {
/* process request from the server */
qlen = read(sd, query_args->buf, INBUFSIZE);
if (qlen == 0) {
EXIT_APP("*** server closed the connection ***", app, 1)
@@ -105,22 +105,22 @@ void query_loop(app_t *app) {
}
}
/* process upload/download */
if (query_args->file && query_args->file->fd > -1 &&
FD_ISSET(query_args->file->fd, &readfds)) {
/* process upload/download */
query_args->buf_used =
read(query_args->file->fd, query_args->buf, INBUFSIZE);
process_query(app);
}
if (FD_ISSET(STDIN_FILENO, &readfds)) {
if (app->main_ui.cb_b_press != NULL) {
if (app->main_ui.cb_b_press != NULL && app->modal.is_initiated == false) {
if (ERR == app->main_ui.cb_b_press(app, &d_args)) {
EXIT_APP("*** error while processing user input ***", app, 4)
w_alert("error while processing user input");
}
} else {
if (ERR == process_user_input(app, &d_args)) {
EXIT_APP("*** error while processing user input ***", app, 4)
w_alert("error while processing user input");
}
}
}