mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Fix album reloading issue
All the albums were being forced to reload on update because they come back with `unLoaded` cover art.
This commit is contained in:
parent
6e0c97492b
commit
63afa3ffce
@ -18,7 +18,7 @@ enum Loading<T> {
|
|||||||
extension Loading: EnumEquatable {
|
extension Loading: EnumEquatable {
|
||||||
static func ~= (lhs: Loading<T>, rhs: Loading<T>) -> Bool {
|
static func ~= (lhs: Loading<T>, rhs: Loading<T>) -> Bool {
|
||||||
switch (lhs, rhs) {
|
switch (lhs, rhs) {
|
||||||
case (.notLoaded, .notLoaded),
|
case (_, .notLoaded),
|
||||||
(.loading, .loading),
|
(.loading, .loading),
|
||||||
(.loaded, .loaded),
|
(.loaded, .loaded),
|
||||||
(.error, .error):
|
(.error, .error):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user