hide progress bar when not actually mid-upload

This commit is contained in:
ouwou committed 2023-12-07 21:53:05 -05:00
1 parent 4bca973a21
commit 8324172a90
3 files changed
+37 -3

No files matched your search

+8 -2
View File
@@ -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();
}