Renamed titlebar preference

This commit is contained in:
James Booth
2015-01-12 00:43:42 +00:00
parent e4d703f914
commit c64484c6ed
6 changed files with 51 additions and 16 deletions

View File

@@ -3252,10 +3252,14 @@ cmd_states(gchar **args, struct cmd_help_t help)
gboolean
cmd_titlebar(gchar **args, struct cmd_help_t help)
{
if (g_strcmp0(args[0], "off") == 0) {
if (g_strcmp0(args[0], "show") != 0) {
cons_show("Usage: %s", help.usage);
return TRUE;
}
if (g_strcmp0(args[1], "off") == 0) {
ui_clear_win_title();
}
return _cmd_set_boolean_preference(args[0], help, "Titlebar", PREF_TITLEBAR);
return _cmd_set_boolean_preference(args[1], help, "Titlebar show", PREF_TITLEBAR_SHOW);
}
gboolean