mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
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:
parent
4803538e39
commit
25845074d6
5 changed files with 64 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue