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];
|
MidiManager *mgr = [MidiManager sharedManager];
|
||||||
|
|
||||||
NSArray *array = _category == kIndexMidiIn ? [mgr sources] : [mgr destinations];
|
NSArray *array = _category == kIndexMidiIn ? [mgr sources] : [mgr destinations];
|
||||||
|
|
||||||
[menu removeAllItems];
|
|
||||||
NSString *selected = [[_popUpButton selectedItem] representedObject];
|
NSString *selected = [[_popUpButton selectedItem] representedObject];
|
||||||
|
[menu removeAllItems];
|
||||||
int selectedIndex = -1;
|
int selectedIndex = -1;
|
||||||
NSMenuItem *item;
|
NSMenuItem *item;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue