Skip to content
Snippets Groups Projects
Commit 0ca1a099 authored by Nico's avatar Nico
Browse files

Give API to Contacts

parent 1ef5ee6d
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,14 @@
from briar.api.models.contacts import Contacts
from briar.gtk.container import Container
from briar.gtk.define import App
class MainContainer(Container):
def __init__(self):
super().__init__()
self._api = App().api
self.__setup_view()
self._load_content()
......@@ -19,5 +21,5 @@ class MainContainer(Container):
self.builder.connect_signals(self)
def _load_content(self):
contacts = Contacts()
contacts = Contacts(self._api)
contacts.get()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment