mirror of
https://github.com/ksherlock/ample.git
synced 2026-03-10 16:18:18 +00:00
midi selection - need to save the current object before destroying the menu.
This commit is contained in:
@@ -164,9 +164,9 @@ static NSString *kNone = @"—None—";
|
||||
MidiManager *mgr = [MidiManager sharedManager];
|
||||
|
||||
NSArray *array = _category == kIndexMidiIn ? [mgr sources] : [mgr destinations];
|
||||
|
||||
[menu removeAllItems];
|
||||
|
||||
NSString *selected = [[_popUpButton selectedItem] representedObject];
|
||||
[menu removeAllItems];
|
||||
int selectedIndex = -1;
|
||||
NSMenuItem *item;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user