From 86ba49aeb14f6e970d99fba33b4f8c7c19e8595d Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Thu, 23 May 2024 14:18:34 +0200 Subject: [PATCH] ImageList._changed -> _dirty --- picard/util/imagelist.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/picard/util/imagelist.py b/picard/util/imagelist.py index d86629c10..278cd8f2b 100644 --- a/picard/util/imagelist.py +++ b/picard/util/imagelist.py @@ -32,7 +32,7 @@ class ImageList(MutableSequence): def __init__(self, iterable=()): self._images = list(iterable) self._hash_dict = {} - self._changed = True + self._dirty = True def __len__(self): return len(self._images) @@ -42,14 +42,14 @@ class ImageList(MutableSequence): def __setitem__(self, index, value): self._images[index] = value - self._changed = True + self._dirty = True def __delitem__(self, index): del self._images[index] - self._changed = True + self._dirty = True def insert(self, index, value): - self._changed = True + self._dirty = True return self._images.insert(index, value) def __repr__(self): @@ -93,12 +93,12 @@ class ImageList(MutableSequence): def strip_front_images(self): self._images = [image for image in self._images if not image.is_front_image()] - self._changed = True + self._dirty = True def hash_dict(self): - if self._changed: + if self._dirty: self._hash_dict = {img.datahash.hash(): img for img in self._images} - self._changed = False + self._dirty = False return self._hash_dict