summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaultsController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-06-08 16:59:25 +0200
committerDamiano Galassi <[email protected]>2018-06-08 16:59:25 +0200
commitc762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch)
treee0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBAudioDefaultsController.m
parentde7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (diff)
MacGui: set the minimum deployment target to 10.10. Remove Growl and use macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
Diffstat (limited to 'macosx/HBAudioDefaultsController.m')
-rw-r--r--macosx/HBAudioDefaultsController.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/macosx/HBAudioDefaultsController.m b/macosx/HBAudioDefaultsController.m
index 023030ecf..88788e63b 100644
--- a/macosx/HBAudioDefaultsController.m
+++ b/macosx/HBAudioDefaultsController.m
@@ -7,7 +7,7 @@
#import "HBAudioDefaultsController.h"
#import "HBLanguagesSelection.h"
-@import HandBrakeKit.HBAudioDefaults;
+@import HandBrakeKit;
static void *HBAudioDefaultsContext = &HBAudioDefaultsContext;
@@ -87,14 +87,12 @@ static void *HBAudioDefaultsContext = &HBAudioDefaultsContext;
- (IBAction)ok:(id)sender
{
self.settings.trackSelectionLanguages = [self.languagesList.selectedLanguages mutableCopy];
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseOK];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK];
}
- (IBAction)cancel:(id)sender
{
- [self.window orderOut:nil];
- [NSApp endSheet:self.window returnCode:NSModalResponseCancel];
+ [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel];
}
- (IBAction)openUserGuide:(id)sender