mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
No longer polluting the standard WebView preferences. Thanks to Christiaan Hofman for the patch.
This commit is contained in:
1 parent
ccef53a3d3
commit
cb80e0ef51
1 file changed
+4
-2
+4
-2
@@ -61,8 +61,10 @@
|
||||
|
||||
- (void)displayReleaseNotes
|
||||
{
|
||||
[[WebPreferences standardPreferences] setStandardFontFamily:[[NSFont systemFontOfSize:8] familyName]];
|
||||
[releaseNotesView setPreferences:[WebPreferences standardPreferences]];
|
||||
// Set the default font, but avoid polluting the standard preferences.
|
||||
WebPreferences *preferences = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:[WebPreferences standardPreferences]]];
|
||||
[preferences setStandardFontFamily:[[NSFont systemFontOfSize:8] familyName]];
|
||||
[releaseNotesView setPreferences:preferences];
|
||||
[releaseNotesView setFrameLoadDelegate:self];
|
||||
[releaseNotesView setPolicyDelegate:self];
|
||||
|
||||
|
||||
Reference in new issue
Block a user