building out UI a ton more and also working on serialization and deserial for the desktop app
This commit is contained in:
@@ -3,6 +3,7 @@ from textual.widgets import Header, Footer, ContentSwitcher
|
||||
from ui.widgets.home_sidebar import HomeSidebar
|
||||
from ui.widgets.home_info import HomeInfo
|
||||
from ui.widgets.channels_list import ChannelsList
|
||||
from ui.widgets.chat_window import ChatWindow
|
||||
|
||||
|
||||
class MainScreen(Screen):
|
||||
@@ -13,5 +14,6 @@ class MainScreen(Screen):
|
||||
with ContentSwitcher(initial="home-info"):
|
||||
yield HomeInfo(id="home-info")
|
||||
yield ChannelsList(id="channels-list")
|
||||
yield ChatWindow(id="chat-window")
|
||||
|
||||
yield Footer()
|
||||
@@ -15,7 +15,7 @@ class PairScreen(Screen):
|
||||
async def connect_to_node(self, is_retry = False):
|
||||
if not is_retry:
|
||||
self.notify("This may take a moment...", title="Discovering nearby nodes...")
|
||||
self.app.mesh_node = await MeshNode.discover()
|
||||
self.app.mesh_node = await MeshNode.discover(self.app)
|
||||
|
||||
if self.app.mesh_node == None:
|
||||
self.notify("Check your node is powered on and nearby.\nRetrying...", title="Failed to find a nearby node!", severity="warning")
|
||||
|
||||
Reference in New Issue
Block a user