aspell: refresh bar item "aspell_suggest" when aspell is enabled/disabled (bug #37744)
This commit is contained in:
parent
adec2dec0e
commit
c1389f8fe1
@ -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 ();
|
||||||
|
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user