Fix error log 'extractOptions unknown hint identifier'
This commit is contained in:
@@ -216,7 +216,13 @@
|
||||
*/
|
||||
- (void)faviconDownload:(FaviconDownload*)sender didFinish:(nullable NSURL*)path {
|
||||
// Create image from favicon temporary file location or default icon if no favicon exists.
|
||||
NSImage *img = path ? [[NSImage alloc] initByReferencingURL:path] : [NSImage imageNamed:RSSImageDefaultRSSIcon];
|
||||
NSImage *img;
|
||||
if (path) {
|
||||
NSData* data = [[NSData alloc] initWithContentsOfURL:path];
|
||||
img = [[NSImage alloc] initWithData:data];
|
||||
} else {
|
||||
img = [NSImage imageNamed:RSSImageDefaultRSSIcon];
|
||||
}
|
||||
self.view.favicon.image = img;
|
||||
self.faviconFile = path;
|
||||
[self downloadComplete];
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
[content setFrameSize: NSMakeSize(w, h)];
|
||||
|
||||
// after content size, increase to window size
|
||||
w += 2 * PAD_WIN;
|
||||
w += 2 * (NSInteger)PAD_WIN;
|
||||
h += PAD_WIN + contentOffsetY; // the second PAD_WIN is already in contentOffsetY
|
||||
|
||||
NSWindowStyleMask style = NSWindowStyleMaskTitled | NSWindowStyleMaskResizable | NSWindowStyleMaskFullSizeContentView;
|
||||
|
||||
Reference in New Issue
Block a user