custom icons can now be selected.

This commit is contained in:
michael starke
2017-09-07 21:26:12 +02:00
parent 6410cc905b
commit 348da78e23
4 changed files with 115 additions and 26 deletions

View File

@@ -21,6 +21,7 @@
//
#import "MPIconHelper.h"
#import "KeePassKit/KeePassKit.h"
@implementation MPIconHelper
@@ -53,7 +54,9 @@
continue; // Skip all non-db Keys
}
MPIconType iconType = (MPIconType)iconNumber.integerValue;
[mutableIcons addObject:[MPIconHelper icon:iconType]];
KPKIcon *icon = [[KPKIcon alloc] init];
icon.image = [MPIconHelper icon:iconType];
[mutableIcons addObject:icon];
}
icons = [mutableIcons copy];
});