mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-10-26 10:51:40 -04:00
Channels: prevent the channels list from permanently hiding after hiding it and leaving a room
This commit is contained in:
parent
944fc15a2b
commit
2f86d06c25
1 changed files with 11 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue