Add showUpdateInFocus implementation to Test App user driver

This commit is contained in:
Zorg committed 2021-04-17 16:36:28 -07:00
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