mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
aspell: refresh bar item "aspell_suggest" when aspell is enabled/disabled (bug #37744)
This commit is contained in:
@@ -76,6 +76,9 @@ weechat_aspell_bar_item_suggest (void *data, struct t_gui_bar_item *item,
|
||||
(void) data;
|
||||
(void) item;
|
||||
|
||||
if (!aspell_enabled)
|
||||
return NULL;
|
||||
|
||||
if (!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);
|
||||
|
||||
/* refresh input */
|
||||
/* refresh input and aspell suggestions */
|
||||
weechat_bar_item_update ("input_text");
|
||||
weechat_bar_item_update ("aspell_suggest");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user