aspell: refresh bar item "aspell_suggest" when aspell is enabled/disabled (bug #37744)

This commit is contained in:
Sebastien Helleu 2012-11-16 13:28:24 +01:00
parent adec2dec0e
commit c1389f8fe1
2 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,9 @@ weechat_aspell_bar_item_suggest (void *data, struct t_gui_bar_item *item,
(void) data; (void) data;
(void) item; (void) item;
if (!aspell_enabled)
return NULL;
if (!window) if (!window)
window = weechat_current_window (); window = weechat_current_window ();

View File

@ -129,8 +129,9 @@ weechat_aspell_config_change_enabled (void *data, struct t_config_option *option
aspell_enabled = weechat_config_boolean (option); aspell_enabled = weechat_config_boolean (option);
/* refresh input */ /* refresh input and aspell suggestions */
weechat_bar_item_update ("input_text"); weechat_bar_item_update ("input_text");
weechat_bar_item_update ("aspell_suggest");
} }
/* /*