mirror of https://github.com/ksherlock/ample.git
midi selection - need to save the current object before destroying the menu.
This commit is contained in:
parent
2b2f3a2fd8
commit
d258fd2a48
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue