diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-07 21:53:05 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-07 21:53:05 -0500 |
commit | 8324172a90752403edcec2203a2abb386046cc8f (patch) | |
tree | c6b614d8749e407637626a9d7e238db652c734d0 /src/components/chatwindow.cpp | |
parent | 4bca973a21b632eaaa0af271a00f06e8860ec288 (diff) | |
download | abaddon-portaudio-8324172a90752403edcec2203a2abb386046cc8f.tar.gz abaddon-portaudio-8324172a90752403edcec2203a2abb386046cc8f.zip |
hide progress bar when not actually mid-upload
Diffstat (limited to 'src/components/chatwindow.cpp')
-rw-r--r-- | src/components/chatwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/chatwindow.cpp b/src/components/chatwindow.cpp index aeed4ed..9a2493d 100644 --- a/src/components/chatwindow.cpp +++ b/src/components/chatwindow.cpp @@ -5,7 +5,7 @@ #include "chatlist.hpp" #include "constants.hpp" #ifdef WITH_LIBHANDY - #include "channeltabswitcherhandy.hpp" +#include "channeltabswitcherhandy.hpp" #endif ChatWindow::ChatWindow() { @@ -109,7 +109,13 @@ ChatWindow::ChatWindow() { m_main->add(*m_meta); m_main->add(m_progress); - m_progress.show(); + m_progress.signal_start().connect([this]() { + m_progress.show(); + }); + + m_progress.signal_stop().connect([this]() { + m_progress.hide(); + }); m_main->show(); } |