diff --git a/docs/changelog.rst b/docs/changelog.rst index 774608a..ef2d734 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,4 +2,5 @@ Changelog ========= - fix bug with the icon on the ``Could not find anything. Sorry.`` result not properly displaying the icon -- fix bug with the default settings on a fresh installation not properly resolving to a settings decoder. \ No newline at end of file +- fix bug with the default settings on a fresh installation not properly resolving to a settings decoder. +- fix bug with old manuals not being removed when saving new settings \ No newline at end of file diff --git a/plugin/settings.py b/plugin/settings.py index f109a6f..9864925 100644 --- a/plugin/settings.py +++ b/plugin/settings.py @@ -123,6 +123,7 @@ async def save(self, plugin: RtfmPlugin) -> None: plugin.better_settings.debug_mode = self.debug_mode plugin.dump_settings() + plugin.rtfm.manuals.clear() plugin.rtfm.load_partials(*self.manuals) plugin.rtfm.trigger_cache_reload() asyncio.create_task(plugin.ensure_keywords())