Icons not properly unregistered

Issue #1 new
Former user created an issue

Hi, Thank you for this great addition !

Found a small unregister issue: the addon dosent properly unregister icons.

ResourceWarning: <ImagePreviewCollection id=0x1e3e9a73278[0]>: left open, remove with 'bpy.utils.previews.remove()'

Should add something like this in ui_utils and call from unregister:

for icons in preview_icons.values():
        bpy.utils.previews.remove(icons)
    preview_icons.clear()

Comments (1)

  1. Log in to comment