diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-13 23:42:34 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 62dd42910c42097f857181f7a65061f47c5ec2e4 (patch) | |
tree | 87b9ec416e9503fd3687900ec07885760ebc5966 | |
parent | 0cd9168d99b673ee0adf6528c1ac5afc4de7eff0 (diff) | |
download | wee-slack-62dd42910c42097f857181f7a65061f47c5ec2e4.tar.gz |
Don't show disconnected status when connecting
-rw-r--r-- | slack/register.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/slack/register.py b/slack/register.py index 1730122..23a4d55 100644 --- a/slack/register.py +++ b/slack/register.py @@ -62,13 +62,16 @@ def modifier_input_text_display_with_cursor_cb( ) input_delim_start = with_color(input_delim_color, "[") input_delim_end = with_color(input_delim_color, "]") - if not slack_buffer.workspace.is_connected: + if ( + not slack_buffer.workspace.is_connected + and not slack_buffer.workspace.is_connecting + ): prefix += ( f"{input_delim_start}" f"{with_color(shared.config.color.disconnected.value, 'disconnected')}" f"{input_delim_end} " ) - if slack_buffer.is_loading: + if slack_buffer.is_loading or slack_buffer.workspace.is_connecting: prefix += ( f"{input_delim_start}" f"{with_color(shared.config.color.loading.value, 'loading')}" |