From 29f21017840c16bd8cbb2c1664f96a1d139286f0 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 6 Mar 2019 09:08:44 +0100 Subject: MacGui: use a stackview instead of constrains in the summary view to simplify hiding UI elements. --- macosx/HBSummaryViewController.m | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'macosx/HBSummaryViewController.m') diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m index 21128a38c..8e8f2208e 100644 --- a/macosx/HBSummaryViewController.m +++ b/macosx/HBSummaryViewController.m @@ -20,8 +20,6 @@ static void *HBSummaryViewControllerSubsContext = &HBSummaryViewControllerSubsCo @interface HBSummaryViewController () -@property (nonatomic, strong) IBOutlet NSLayoutConstraint *bottomOptionsConstrain; - @property (nonatomic, strong) IBOutlet NSTextField *tracksLabel; @property (nonatomic, strong) IBOutlet NSTextField *filtersLabel; @property (nonatomic, strong) IBOutlet NSTextField *dimensionLabel; @@ -46,7 +44,6 @@ static void *HBSummaryViewControllerSubsContext = &HBSummaryViewControllerSubsCo if (self) { _labelColor = [NSColor disabledControlTextColor]; - _previewViewController = [[HBPreviewViewController alloc] init]; } return self; @@ -117,14 +114,6 @@ static void *HBSummaryViewControllerSubsContext = &HBSummaryViewControllerSubsCo } else if (context == HBSummaryViewControllerContainerContext) { - if ([change[NSKeyValueChangeNewKey] integerValue] & 0x030000) - { - self.bottomOptionsConstrain.active = YES; - } - else - { - self.bottomOptionsConstrain.active = NO; - } [self updateTracks:nil]; } else if (context == HBSummaryViewControllerVideoContext) -- cgit v1.2.3