diff options
author | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2018-06-08 16:59:25 +0200 |
commit | c762b2c0ec5b6fb58d1fd453e2b5aed526c6d693 (patch) | |
tree | e0ab43c5ddd28ed876158b689be0c93c2380d970 /macosx/HBAudioDefaultsController.m | |
parent | de7355d5ad5257c4cce5e0a99fffb3ee58264ba0 (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.m | 8 |
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 |