mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fix not adding effectiveAppearance observer during merge
This commit is contained in:
1 parent
6283992215
commit
8bba4d21fc
1 file changed
+9
Vendored
+9
@@ -149,6 +149,15 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE
|
||||
{
|
||||
[self adaptReleaseNotesAppearance];
|
||||
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
|
||||
if (@available(macOS 10.14, *)) {
|
||||
if (!self.observingAppearance) {
|
||||
[self.webView.view addObserver:self forKeyPath:@"effectiveAppearance" options:0 context:nil];
|
||||
self.observingAppearance = YES;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Stick a nice big spinner in the middle of the web view until the page is loaded.
|
||||
NSRect frame = [[self.webView.view superview] frame];
|
||||
self.releaseNotesSpinner = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(NSMidX(frame) - 16, NSMidY(frame) - 16, 32, 32)];
|
||||
|
||||
Reference in new issue
Block a user