diff options
author | James Booth <boothj5@gmail.com> | 2014-11-19 23:58:55 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-11-19 23:58:55 +0000 |
commit | 20fa96325d9b0618646d5fb94f98d2ffde66a0d8 (patch) | |
tree | 450dd9d28297fc64977eb6fa94500aebd24a4132 /src/command | |
parent | 1a896d7b530874e808d46794e2cf56ea30204082 (diff) | |
download | profani-tty-20fa96325d9b0618646d5fb94f98d2ffde66a0d8.tar.gz |
Added [ui] preferences to themes
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index ecb3b30c..ad1ef1a9 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -715,6 +715,16 @@ cmd_theme(gchar **args, struct cmd_help_t help) } else if (theme_load(args[1])) { ui_load_colours(); prefs_set_string(PREF_THEME, args[1]); + if (prefs_get_boolean(PREF_ROSTER)) { + ui_show_roster(); + } else { + ui_hide_roster(); + } + if (prefs_get_boolean(PREF_OCCUPANTS)) { + ui_show_all_room_rosters(); + } else { + ui_hide_all_room_rosters(); + } ui_redraw(); cons_show("Loaded theme: %s", args[1]); } else { |