mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 01:31:37 +02:00
code cleanup
This commit is contained in:
parent
36a558d123
commit
7d73ca9b41
1 changed files with 5 additions and 8 deletions
|
@ -37,13 +37,12 @@ static Oscilloscope *sharedAudioScope;
|
|||
|
||||
|
||||
void initMacOSXMenu(Oscilloscope *audioScope) {
|
||||
sharedAudioScope = audioScope;
|
||||
|
||||
@autoreleasepool {
|
||||
if (NSApp) {
|
||||
if (!sharedInterfaceMainMenuTarget) {
|
||||
sharedInterfaceMainMenuTarget = [[InterfaceMainMenuTarget alloc] init];
|
||||
}
|
||||
sharedAudioScope = audioScope;
|
||||
|
||||
NSMenu *mainMenu = [NSApp mainMenu];
|
||||
|
||||
|
@ -64,8 +63,6 @@ void initMacOSXMenu(Oscilloscope *audioScope) {
|
|||
action:@selector(scopeNoneAction)
|
||||
keyEquivalent:@""];
|
||||
[sharedInterfaceMainMenuTarget.scopeNoneMenuItem setTarget:sharedInterfaceMainMenuTarget];
|
||||
|
||||
[NSApp setMainMenu:mainMenu];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue