summary refs log tree commit diff
path: root/src/MainWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.cc')
-rw-r--r--src/MainWindow.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/MainWindow.cc b/src/MainWindow.cc

index 80726683..06f8245c 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc
@@ -15,8 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "Config.h" #include "MainWindow.h" +#include "Config.h" #include <QApplication> #include <QLayout> @@ -142,6 +142,15 @@ MainWindow::removeOverlayProgressBar() spinner_.reset(); }); + // FIXME: Snackbar doesn't work if it's initialized in the constructor. + QTimer::singleShot(100, this, [=]() { + snackBar_ = QSharedPointer<SnackBar>(new SnackBar(this)); + connect(chat_page_, + &ChatPage::showNotification, + snackBar_.data(), + &SnackBar::showMessage); + }); + timer->start(500); }