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