Skip to content

Commit

Permalink
remove old manuals when saving settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cibere committed Mar 4, 2025
1 parent 70c7722 commit d5ddd63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- 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
1 change: 1 addition & 0 deletions plugin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d5ddd63

Please sign in to comment.