mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 19:22:25 +00:00
fixes an issue with empty icons being generated when downloading them (fixes #709)
This commit is contained in:
@@ -142,7 +142,7 @@ typedef NS_ENUM(NSInteger, MPIconDownloadStatus) {
|
||||
&& data.length > 0) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
KPKIcon *newIcon = [[KPKIcon alloc] initWithImageData:data];
|
||||
if(newIcon) {
|
||||
if(newIcon && newIcon.image) {
|
||||
self.downloadStatus = MPIconDownloadStatusNone;
|
||||
[metaData addCustomIcon:newIcon];
|
||||
[self _updateCollectionViewContent];
|
||||
|
||||
Reference in New Issue
Block a user