Commit 20f33dbd authored by Nico's avatar Nico
Browse files

Add some more comments on what to do in future for refactoring

parent 94bd6966
Pipeline #5351 passed with stage
in 3 minutes and 21 seconds
......@@ -68,6 +68,7 @@ class PrivateChatController:
contact_name_label = self._builder.get_object("contact_name")
contact_name_label.set_text(user_alias)
self._sidebar_controller.refresh_contacts()
# TODO: Update name in chat history
def open_delete_all_messages_dialog(self):
if self._current_contact_id == 0:
......
......@@ -14,6 +14,8 @@ from briar_gtk.define import APP, RESOURCES_DIR
class AddContactView(Gtk.Overlay):
# TODO: Move more logic into AddContactController
ADD_CONTACT_UI = "add_contact.ui"
STACK_NAME = "add_contact_flow_stack"
HEADERS_NAME = "add_contact_flow_headers"
......
......@@ -13,6 +13,8 @@ from briar_gtk.define import APP, RESOURCES_DIR
class LoginView(Gtk.Overlay):
# TODO: Move more logic into LoginController
LOGIN_UI = "login.ui"
STACK_NAME = "login_flow_stack"
HEADERS_NAME = "login_flow_headers"
......
......@@ -18,6 +18,8 @@ from briar_gtk.widgets.private_message import PrivateMessageWidget
# pylint: disable=too-many-instance-attributes
class PrivateChatView(Gtk.Overlay):
# TODO: Move more logic into PrivateChatController
CONTAINER_UI = "private_chat.ui"
def __init__(self, builder):
......
......@@ -13,6 +13,8 @@ from briar_gtk.define import APP, RESOURCES_DIR
class RegistrationView(Gtk.Overlay):
# TODO: Move more logic into RegistrationController
REGISTRATION_UI = "registration.ui"
STACK_NAME = "registration_flow_stack"
HEADERS_NAME = "registration_flow_headers"
......
......@@ -7,6 +7,8 @@ from briar_gtk.widgets.contact_row import ContactRowWidget
class SidebarView:
# TODO: Move more logic into SidebarController
def __init__(self, builder):
self._builder = builder
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment