mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-22 23:55:46 +00:00
Move can_show_coverart() to Item
This commit is contained in:
@@ -172,11 +172,6 @@ class Cluster(QtCore.QObject, Item):
|
||||
else:
|
||||
return False
|
||||
|
||||
@property
|
||||
def can_show_coverart(self):
|
||||
"""Return if this object supports cover art."""
|
||||
return True
|
||||
|
||||
def is_album_like(self):
|
||||
return True
|
||||
|
||||
|
||||
@@ -47,6 +47,11 @@ class Item(object):
|
||||
def can_view_info(self):
|
||||
return False
|
||||
|
||||
@property
|
||||
def can_show_coverart(self):
|
||||
"""Return if this object supports cover art."""
|
||||
return self.can_edit_tags()
|
||||
|
||||
def can_browser_lookup(self):
|
||||
return True
|
||||
|
||||
|
||||
@@ -1052,7 +1052,7 @@ class MainWindow(QtWidgets.QMainWindow, PreserveGeometry):
|
||||
elif isinstance(obj, Album):
|
||||
metadata = obj.metadata
|
||||
orig_metadata = obj.orig_metadata
|
||||
elif obj.can_edit_tags():
|
||||
elif obj.can_show_coverart:
|
||||
metadata = obj.metadata
|
||||
|
||||
self.metadata_box.selection_dirty = True
|
||||
|
||||
Reference in New Issue
Block a user