Fix own error deleting previews
This commit is contained in:
@@ -112,7 +112,7 @@ class ImagePreviewCollection(dict):
|
|||||||
_uuid_open.remove(self._uuid)
|
_uuid_open.remove(self._uuid)
|
||||||
|
|
||||||
def __delitem__(self, key):
|
def __delitem__(self, key):
|
||||||
_utils_previews.release(self._gen_key(name))
|
_utils_previews.release(self._gen_key(key))
|
||||||
super().__delitem__(key)
|
super().__delitem__(key)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
@@ -145,6 +145,7 @@ def remove(pcoll):
|
|||||||
# don't complain about resources on exit (only unregister)
|
# don't complain about resources on exit (only unregister)
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
|
|
||||||
def exit_clear_warning():
|
def exit_clear_warning():
|
||||||
del ImagePreviewCollection.__del__
|
del ImagePreviewCollection.__del__
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user