From 81cc665ff285c81177a3b23d17678862a6bdbe64 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 27 Apr 2021 00:48:37 +1000 Subject: [PATCH] core: add status bar timeout --- app/core.cpp | 4 ++-- app/core.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/core.cpp b/app/core.cpp index 3f9f0c1a7..aa5ccf066 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -1078,9 +1078,9 @@ bool Core::SaveProject(Project* p) } } -void Core::ShowStatusBarMessage(const QString &s) +void Core::ShowStatusBarMessage(const QString &s, int timeout) { - main_window_->statusBar()->showMessage(s); + main_window_->statusBar()->showMessage(s, timeout); } void Core::OpenRecoveryProject(const QString &filename) diff --git a/app/core.h b/app/core.h index 58eed4514..a8a18981c 100644 --- a/app/core.h +++ b/app/core.h @@ -296,7 +296,7 @@ public: * * Shorthand for Core::instance()->main_window()->statusBar()->showMessage(); */ - void ShowStatusBarMessage(const QString& s); + void ShowStatusBarMessage(const QString& s, int timeout = 0); void OpenRecoveryProject(const QString& filename);