Add methods onto user driver show showing linked release notes

These release notes are downloaded while showing that the new update is found
This commit is contained in:
Zorg committed 2016-05-14 21:45:25 -04:00
1 parent 95416e4f65
commit 1446acf519
11 files changed
+117 -15

No files matched your search

@@ -47,10 +47,14 @@
[[self.textView enclosingScrollView] setDrawsBackground:NO];
[self.textView setDrawsBackground:NO];
NSString *descriptionHTML = self.appcastItem.itemDescription;
NSData *htmlData = [descriptionHTML dataUsingEncoding:NSUTF8StringEncoding];
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithHTML:htmlData documentAttributes:NULL];
[self.textView.textStorage setAttributedString:attributedString];
if (self.appcastItem.releaseNotesURL == nil) {
NSString *descriptionHTML = self.appcastItem.itemDescription;
if (descriptionHTML == nil) {
NSData *htmlData = [descriptionHTML dataUsingEncoding:NSUTF8StringEncoding];
NSAttributedString *attributedString = [[NSAttributedString alloc] initWithHTML:htmlData documentAttributes:NULL];
[self.textView.textStorage setAttributedString:attributedString];
}
}
}
- (IBAction)installUpdate:(id)__unused sender