diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-05-11 12:16:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 12:16:09 +0200 |
commit | 5906c4ade1b215ece95dbd85ea3bdd44fd508b8b (patch) | |
tree | 1e6d4454c60b8527fef885710243c96bdb1f070d /src/command/cmd_funcs.c | |
parent | 1ef700f918f706da2098460ead880b2538aaf262 (diff) | |
parent | 64244474d3d3d07e92a943939202e2d27efa3b40 (diff) | |
download | profani-tty-5906c4ade1b215ece95dbd85ea3bdd44fd508b8b.tar.gz |
Merge pull request #1532 from profanity-im/feat/1516-intype
Have separate settings for intype (console/titlebar)
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 351f7b98..ab212975 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6719,7 +6719,14 @@ cmd_tray(ProfWin* window, const char* const command, gchar** args) gboolean cmd_intype(ProfWin* window, const char* const command, gchar** args) { - _cmd_set_boolean_preference(args[0], command, "Show contact typing", PREF_INTYPE); + if (g_strcmp0(args[0], "console") == 0) { + _cmd_set_boolean_preference(args[1], command, "Show contact typing in console", PREF_INTYPE_CONSOLE); + } else if (g_strcmp0(args[0], "titlebar") == 0) { + _cmd_set_boolean_preference(args[1], command, "Show contact typing in titlebar", PREF_INTYPE); + } else { + cons_bad_cmd_usage(command); + } + return TRUE; } |