mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Added help to form config
This commit is contained in:
parent
fb84c6dcd0
commit
4f0009312f
@ -2488,8 +2488,6 @@ _ui_show_form(ProfWin *window, const char * const room, DataForm *form)
|
|||||||
|
|
||||||
curr_field = g_slist_next(curr_field);
|
curr_field = g_slist_next(curr_field);
|
||||||
}
|
}
|
||||||
|
|
||||||
win_save_println(window, "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2514,6 +2512,12 @@ _ui_handle_room_configuration(const char * const room, DataForm *form)
|
|||||||
ui_switch_win(num);
|
ui_switch_win(num);
|
||||||
|
|
||||||
ui_show_form(window, room, form);
|
ui_show_form(window, room, form);
|
||||||
|
|
||||||
|
win_save_print(window, '-', NULL, 0, 0, "", "");
|
||||||
|
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "Use '/form submit' to save changes.");
|
||||||
|
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "Use '/form cancel' to cancel changes.");
|
||||||
|
win_save_print(window, '-', NULL, 0, COLOUR_ROOMINFO, "", "See '/form help' for more information.");
|
||||||
|
win_save_print(window, '-', NULL, 0, 0, "", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2696,7 +2700,7 @@ static void
|
|||||||
_ui_show_form_help(ProfWin *window, DataForm *form)
|
_ui_show_form_help(ProfWin *window, DataForm *form)
|
||||||
{
|
{
|
||||||
if (form->instructions != NULL) {
|
if (form->instructions != NULL) {
|
||||||
win_save_print(window, '-', NULL, 0, 0, "", "Instructions:");
|
win_save_print(window, '-', NULL, 0, 0, "", "Supplied instructions:");
|
||||||
win_save_print(window, '-', NULL, 0, 0, "", form->instructions);
|
win_save_print(window, '-', NULL, 0, 0, "", form->instructions);
|
||||||
win_save_print(window, '-', NULL, 0, 0, "", "");
|
win_save_print(window, '-', NULL, 0, 0, "", "");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user