summaryrefslogtreecommitdiffstats
path: root/macosx/HBSummaryViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-25 12:10:49 +0100
committerDamiano Galassi <[email protected]>2017-11-25 12:10:49 +0100
commita4e41b985dc75693271cab2f7ce3dbfb23922816 (patch)
tree559189e28064496f4d9a5c0733894b47ca8ec80a /macosx/HBSummaryViewController.m
parent3dc03746790c5c0167de9b9be7db5a8bdb7a37c4 (diff)
MacGui: fix some layout issues on older version of macOS.
Diffstat (limited to 'macosx/HBSummaryViewController.m')
-rw-r--r--macosx/HBSummaryViewController.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m
index 7a4d84284..1b58ce926 100644
--- a/macosx/HBSummaryViewController.m
+++ b/macosx/HBSummaryViewController.m
@@ -29,14 +29,21 @@ static void *HBSummaryViewControllerContext = &HBSummaryViewControllerContext;
@implementation HBSummaryViewController
+- (instancetype)init
+{
+ self = [super initWithNibName:@"HBSummaryViewController" bundle:nil];
+ return self;
+}
+
- (void)loadView
{
[super loadView];
self.previewView.showShadow = NO;
+ self.visible = YES;
[self resetLabels];
}
-- (void)viewDidAppear
+- (void)viewWillAppear
{
self.visible = YES;
if (self.pictureReloadInQueue || self.previewView.image == NULL)