diff --git a/AirPods Sound Quality Fixer/AppDelegate.m b/AirPods Sound Quality Fixer/AppDelegate.m index 7ca0283..3b4e7c3 100644 --- a/AirPods Sound Quality Fixer/AppDelegate.m +++ b/AirPods Sound Quality Fixer/AppDelegate.m @@ -97,6 +97,17 @@ - ( void ) applicationDidFinishLaunching : ( NSNotification* ) aNotification [ self listDevices ]; + // auto select item that name contains string "MacBook" and "Microphone" + + for (NSMenuItem *item in menu.itemArray) { + if ([item.title containsString:@"MacBook"]) { + if ([item.title containsString:@"Microphone"]) { + [self deviceSelected:item]; + } + } + } + + [ statusItem setMenu : menu ]; }