X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ApplicationController.m;h=b86a5f2067f8ebc36e09e8bdc58bd90eda2b70ff;hp=a3ad5ed24955f095252f004086bf8835f1532761;hb=5de694150d275d27119d344cbb1d61bc31d75268;hpb=72b2570b16ae26458b8a314610e44f5e9b0330c1 diff --git a/ApplicationController.m b/ApplicationController.m index a3ad5ed..b86a5f2 100644 --- a/ApplicationController.m +++ b/ApplicationController.m @@ -61,8 +61,14 @@ NSInteger removeFrom = [self firstConfigMenuIndex]; while (dockMenuBase.numberOfItems > removeFrom) [dockMenuBase removeItemAtIndex:dockMenuBase.numberOfItems - 1]; - for (Config *config in self.configsController.configs) - [dockMenuBase addItemWithTitle:config.name action:@selector(chooseConfig:) keyEquivalent:@""]; + int added = 0; + for (Config *config in self.configsController.configs) { + NSString *keyEquiv = ++added < 10 ? @(added).stringValue : @""; + [dockMenuBase addItemWithTitle:config.name + action:@selector(chooseConfig:) + keyEquivalent:keyEquiv]; + + } [_targetController refreshConfigs]; [self configChanged]; }