mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Show fixed form fields
This commit is contained in:
parent
c90f4a37a3
commit
b189f8f52e
@ -2150,7 +2150,12 @@ _ui_show_form(ProfWin *window, const char * const room, DataForm *form)
|
|||||||
while (curr_field != NULL) {
|
while (curr_field != NULL) {
|
||||||
FormField *field = curr_field->data;
|
FormField *field = curr_field->data;
|
||||||
|
|
||||||
if (g_strcmp0(field->type, "hidden") != 0 && field->var) {
|
if ((g_strcmp0(field->type, "fixed") == 0) && field->values) {
|
||||||
|
if (field->values) {
|
||||||
|
char *value = field->values->data;
|
||||||
|
win_save_print(window, '-', NULL, 0, 0, "", value);
|
||||||
|
}
|
||||||
|
} else if (g_strcmp0(field->type, "hidden") != 0 && field->var) {
|
||||||
char *tag = g_hash_table_lookup(form->var_to_tag, field->var);
|
char *tag = g_hash_table_lookup(form->var_to_tag, field->var);
|
||||||
_ui_handle_form_field(window, tag, field);
|
_ui_handle_form_field(window, tag, field);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user