From 2f86d06c25cb023e82e45c6b055fc3af1b3b80e9 Mon Sep 17 00:00:00 2001 From: Jeremy O'Brien Date: Sat, 23 May 2026 22:09:50 -0400 Subject: [PATCH] Channels: prevent the channels list from permanently hiding after hiding it and leaving a room --- nomadnet/ui/textui/Channels.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nomadnet/ui/textui/Channels.py b/nomadnet/ui/textui/Channels.py index 3fe6d7b..3c980df 100644 --- a/nomadnet/ui/textui/Channels.py +++ b/nomadnet/ui/textui/Channels.py @@ -1458,7 +1458,17 @@ class ChannelsDisplay(): if isinstance(prev, RoomWidget) and prev is not widget: self._save_room_draft(prev) self.right = widget - self._apply_channel_list_visibility(focus_right=True) + if widget is self.placeholder: + # The placeholder has nothing to interact with, so always keep the + # hub/channel pane visible (and focused) beside it. + self.channel_list_visible = True + self._apply_channel_list_visibility(focus_right=False) + try: + self.columns_widget.focus_position = 0 + except Exception: + pass + else: + self._apply_channel_list_visibility(focus_right=True) def _draft_key(self, hub, room): try: