From 0afd9a907333fc3890ad4884fa46ff679ba25ed8 Mon Sep 17 00:00:00 2001 From: macmade Date: Tue, 6 Nov 2018 23:16:38 +0100 Subject: [PATCH] Initial refresh is done only once... --- Notarize/Classes/MainWindowController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Notarize/Classes/MainWindowController.swift b/Notarize/Classes/MainWindowController.swift index 98d7025..8edbc58 100644 --- a/Notarize/Classes/MainWindowController.swift +++ b/Notarize/Classes/MainWindowController.swift @@ -70,6 +70,8 @@ class MainWindowController: NSWindowController if self.controllers[ account.username ] == nil { self.controllers[ account.username ] = HistoryViewController( account: account ) + + self.controllers[ account.username ]?.refresh( nil ) } guard let controller = self.controllers[ account.username ] else @@ -77,8 +79,6 @@ class MainWindowController: NSWindowController return } - controller.refresh( nil ) - controller.view.translatesAutoresizingMaskIntoConstraints = false self.historyViewContainer.addSubview( controller.view )