mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user