Initial refresh is done only once...

This commit is contained in:
macmade
2018-11-06 23:16:38 +01:00
parent d857820bde
commit 0afd9a9073
+2 -2
View File
@@ -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 )