mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
core: call hook config when options are freed by unset or when file/section is freed
This fixes a refresh issue on the fset buffer when a plugin is unloaded: now the options displayed that are freed are properly removed from the fset buffer.
This commit is contained in:
@@ -2232,7 +2232,7 @@ config_file_option_unset (struct t_config_option *option)
|
||||
}
|
||||
else
|
||||
{
|
||||
config_file_option_free (option, 0);
|
||||
config_file_option_free (option, 1);
|
||||
rc = WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
|
||||
}
|
||||
|
||||
@@ -3956,7 +3956,7 @@ config_file_section_free_options (struct t_config_section *section)
|
||||
|
||||
while (section->options)
|
||||
{
|
||||
config_file_option_free (section->options, 0);
|
||||
config_file_option_free (section->options, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user