Skip to content

Commit

Permalink
Fixing (hopefully) language switcher popping up for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed Dec 14, 2023
1 parent a51fcf7 commit f2e671b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Translit/src/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ auto main(int argc, const char * argv[]) -> int {
@autoreleasepool {
auto bundle = NSBundle.mainBundle;
NSString * connectionName = [bundle objectForInfoDictionaryKey:@"InputMethodConnectionName"];
[[maybe_unused]]
auto server = [[IMKServer alloc] initWithName:connectionName
bundleIdentifier:bundle.bundleIdentifier];
NSString * mainNib = [bundle objectForInfoDictionaryKey:@"NSMainNibFile"];
[bundle loadNibNamed:mainNib owner:NSApp topLevelObjects:nil];
[[maybe_unused]]
auto candidates = [[IMKCandidates alloc] initWithServer:server
panelType:kIMKSingleColumnScrollingCandidatePanel
styleType:kIMKMain];
[NSApp run];
}
}

0 comments on commit f2e671b

Please sign in to comment.