mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Don't show submit help on form if there is no submit callback
Could be missleading for user.
This commit is contained in:
parent
6de60e7efc
commit
371b64a842
@ -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, '-', "");
|
||||
|
Loading…
Reference in New Issue
Block a user