diff options
author | Damiano Galassi <[email protected]> | 2016-10-31 18:40:08 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-10-31 18:40:08 +0100 |
commit | 77d09e91d9e7ed3e31abb13c68db0843e7c1c299 (patch) | |
tree | 858a02d59b58c846538381d2e112edc9c9e27dd8 /macosx/HBAddPresetController.m | |
parent | b796c6c6b7b5a87c7c8ccf696e92c1469fc62b7d (diff) |
MacGui: Add new anamorphic mode "Automatic".
Diffstat (limited to 'macosx/HBAddPresetController.m')
-rw-r--r-- | macosx/HBAddPresetController.m | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m index 26d7b96c1..9c82e4087 100644 --- a/macosx/HBAddPresetController.m +++ b/macosx/HBAddPresetController.m @@ -59,13 +59,8 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) { - (void)windowDidLoad { [super windowDidLoad]; - /* - * Populate the preset picture settings popup. - * - * Custom is not applicable when the anamorphic mode is Strict. - * - * Use [NSMenuItem tag] to store preset values for each option. - */ + // Populate the preset picture settings popup. + // Use [NSMenuItem tag] to store preset values for each option. // Default to Source Maximum HBAddPresetControllerMode mode = HBAddPresetControllerModeSourceMaximum; @@ -73,16 +68,12 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) { [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"None", nil)]; [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeNone]; - if (![self.preset[@"PicturePAR"] isEqualToString:@"strict"]) + [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Custom", nil)]; + [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeCustom]; + + if (self.defaultToCustom) { - // not Strict, Custom is applicable - [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Custom", nil)]; - [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeCustom]; - - if (self.defaultToCustom) - { - mode = HBAddPresetControllerModeCustom; - } + mode = HBAddPresetControllerModeCustom; } [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"Source Maximum", nil)]; [[self.picSettingsPopUp lastItem] setTag:HBAddPresetControllerModeSourceMaximum]; |