ui: file list

This commit is contained in:
2025-12-26 17:34:51 +02:00
parent e3fbe1b40a
commit b669b4be8a
16 changed files with 164 additions and 49 deletions
+3 -2
View File
@@ -15,17 +15,18 @@ void login_modal_option_cb(callback_args_t *args) {
int32_t response;
callback_args_t d_args;
app_t *app = args->app;
dialogue_t *d = (dialogue_t *)args->widget;
dialogue_t *d = (dialogue_t *)app->active_widget;
memcpy(&d_args, args, sizeof(callback_args_t));
d_args.app = NULL;
d_args.resp_data = &response;
d_args.widget = app->active_widget;
dialogue_default_callback(&d_args);
if (response > -1) {
switch (response) {
case 0:
break;
case 1:
destroy_dialogue(d);
destroy_dialogue(d, app);
app->query_args->state = S_ASK_LOGIN_USER;
break;
}