Autotype now displays overlay windows to show match or miss

This commit is contained in:
michael starke
2014-12-12 22:36:22 +01:00
parent 3bff2a4f73
commit e109901fa8
3 changed files with 18 additions and 0 deletions

View File

@@ -52,6 +52,16 @@
}
- (void)displayOverlayImage:(NSImage *)imageOrNil label:(NSString *)labelOrNil atView:(NSView *)view {
if(![NSThread currentThread].isMainThread) { NSAssert(NO, @"Must be called on main thread"); }
/*
if(![NSThread currentThread].isMainThread) {
__weak MPOverlayWindowController *welf = self;
dispatch_async(dispatch_get_main_queue(), ^{
[welf displayOverlayImage:imageOrNil label:labelOrNil atView:view];
});
return;
}
*/
if(self.isAnimating) {
return;
}