mirror of
https://github.com/ksherlock/ample.git
synced 2024-06-06 03:29:33 +00:00
midi selection - need to save the current object before destroying the menu.
This commit is contained in:
parent
2b2f3a2fd8
commit
d258fd2a48
|
@ -165,8 +165,8 @@ static NSString *kNone = @"—None—";
|
||||||
|
|
||||||
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
Block a user