mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-26 17:43:59 +00:00
Fix file icon status not updated on save
This commit is contained in:
@@ -461,12 +461,12 @@ class File(QtCore.QObject, Item):
|
||||
self.state = File.CHANGED
|
||||
break
|
||||
else:
|
||||
self.similarity = 1.0
|
||||
if self.state in (File.CHANGED, File.NORMAL):
|
||||
self.state = File.NORMAL
|
||||
# Set the file state to changed if the cover art changes
|
||||
if self.metadata.images != self.orig_metadata.images and self.metadata.images:
|
||||
self.state = File.CHANGED
|
||||
if self.orig_metadata.images != self.metadata.images:
|
||||
self.state = File.CHANGED
|
||||
else:
|
||||
self.similarity = 1.0
|
||||
if self.state in (File.CHANGED, File.NORMAL):
|
||||
self.state = File.NORMAL
|
||||
if signal:
|
||||
log.debug("Updating file %r", self)
|
||||
if self.item:
|
||||
|
||||
Reference in New Issue
Block a user