mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +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) {
|
&& data.length > 0) {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
KPKIcon *newIcon = [[KPKIcon alloc] initWithImageData:data];
|
KPKIcon *newIcon = [[KPKIcon alloc] initWithImageData:data];
|
||||||
if(newIcon) {
|
if(newIcon && newIcon.image) {
|
||||||
self.downloadStatus = MPIconDownloadStatusNone;
|
self.downloadStatus = MPIconDownloadStatusNone;
|
||||||
[metaData addCustomIcon:newIcon];
|
[metaData addCustomIcon:newIcon];
|
||||||
[self _updateCollectionViewContent];
|
[self _updateCollectionViewContent];
|
||||||
|
|||||||
Reference in New Issue
Block a user