mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Add showUpdateInFocus implementation to Test App user driver
This commit is contained in:
1 parent
f58cc9e9b5
commit
cc4c02f467
1 file changed
+9
@@ -165,6 +165,15 @@
|
||||
- (void)showUpdateInFocus
|
||||
{
|
||||
[self.window makeKeyAndOrderFront:nil];
|
||||
|
||||
if (self.updateButton.enabled) {
|
||||
// Not the proper way to do things but ignoring warnings in Test App.
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wobjc-messaging-id"
|
||||
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
|
||||
[self.updateButton.target performSelector:self.updateButton.action withObject:self.updateButton];
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark Install & Relaunch Update
|
||||
|
||||
Reference in new issue
Block a user