mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Allow native menu to unhighlight
This commit is contained in:
@@ -17,13 +17,19 @@ void DoSettingsMain(void);
|
|||||||
@implementation AerofoilAppDelegate
|
@implementation AerofoilAppDelegate
|
||||||
|
|
||||||
- (IBAction)showAboutAerofoil:(id)sender {
|
- (IBAction)showAboutAerofoil:(id)sender {
|
||||||
DoAboutFramework();
|
[self performAsynchronously:DoAboutFramework];
|
||||||
}
|
}
|
||||||
- (IBAction)showAboutGliderPRO:(id)sender {
|
- (IBAction)showAboutGliderPRO:(id)sender {
|
||||||
DoAbout();
|
[self performAsynchronously:DoAbout];
|
||||||
}
|
}
|
||||||
- (IBAction)showPreferences:(id)sender {
|
- (IBAction)showPreferences:(id)sender {
|
||||||
DoSettingsMain();
|
[self performAsynchronously:DoSettingsMain];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)performAsynchronously:(void(*)())function {
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
function();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
|
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
|
||||||
|
Reference in New Issue
Block a user