fix: wrong variable type

This commit is contained in:
Marc Durdin 2020-11-24 08:04:30 +11:00
parent e41df6f838
commit 258fed6511

View file

@ -145,7 +145,7 @@ id _lastServerWithOSKShowing = nil;
// options.debug = @YES;
}];
[SentrySDK captureMessage:@"Starting Keyman [test message]"];
// [SentrySDK captureMessage:@"Starting Keyman [test message]"];
}
#ifdef USE_ALERT_SHOW_HELP_TO_FORCE_EASTER_EGG_CRASH_FROM_ENGINE
@ -271,6 +271,8 @@ CGEventRef eventTapFunction(CGEventTapProxy proxy, CGEventType type, CGEventRef
switch (type) {
case kCGEventFlagsChanged:
if (appDelegate.debugMode)
NSLog(@"System Event: flags changed: %x", (int) sysEvent.modifierFlags);
appDelegate.currentModifierFlags = sysEvent.modifierFlags;
if (appDelegate.currentModifierFlags & NSEventModifierFlagCommand) {
appDelegate.contextChangingEventDetected = YES;
@ -1064,7 +1066,7 @@ CGEventRef eventTapFunction(CGEventTapProxy proxy, CGEventType type, CGEventRef
- (void)downloadKeyboardFromKeyboardId:(NSString *)keyboardId {
KeymanVersionInfo keymanVersionInfo = [self versionInfo];
NSString* url = [NSURL URLWithString:[NSString stringWithFormat:@"https://%@/go/package/download/%@?platform=macos&tier=%@",
NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@"https://%@/go/package/download/%@?platform=macos&tier=%@",
keymanVersionInfo.keymanCom, keyboardId, keymanVersionInfo.tier]]; //&bcp47=%@&update=0
_downloadFilename = [NSString stringWithFormat:@"%@.kmp", keyboardId];
[self downloadKeyboardFromURL:url];