From 371b64a8422b13e76b2d2af9f3f481351117f119 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Mon, 10 Sep 2018 12:46:18 +0200 Subject: Don't show submit help on form if there is no submit callback Could be missleading for user. --- src/ui/confwin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/confwin.c b/src/ui/confwin.c index 80937f7d..9791e5cf 100644 --- a/src/ui/confwin.c +++ b/src/ui/confwin.c @@ -97,7 +97,9 @@ confwin_handle_configuration(ProfConfWin *confwin, DataForm *form) confwin_show_form(confwin); win_println(window, THEME_DEFAULT, '-', ""); - win_println(window, THEME_DEFAULT, '-', "Use '/form submit' to save changes."); + if (confwin->submit != NULL) { + win_println(window, THEME_DEFAULT, '-', "Use '/form submit' to save changes."); + } win_println(window, THEME_DEFAULT, '-', "Use '/form cancel' to cancel changes."); win_println(window, THEME_DEFAULT, '-', "See '/form help' for more information."); win_println(window, THEME_DEFAULT, '-', ""); -- cgit 1.4.1-2-gfad0