Reload theme after /SET theme if it was modified.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1265 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-02-20 01:12:47 +00:00 committed by cras
commit 25845074d6
5 changed files with 64 additions and 29 deletions

View file

@ -432,13 +432,16 @@ static void cmd_window_list(void)
/* SYNTAX: WINDOW THEME <name> */
static void cmd_window_theme(const char *data)
{
THEME_REC *theme;
g_free_not_null(active_win->theme_name);
active_win->theme_name = g_strdup(data);
active_win->theme = theme_load(data);
if (active_win->theme != NULL) {
active_win->theme = theme = theme_load(data);
if (theme != NULL) {
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
TXT_WINDOW_THEME_CHANGED, data);
TXT_WINDOW_THEME_CHANGED,
theme->name, theme->path);
} else {
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
TXT_THEME_NOT_FOUND, data);