From fdbb8e59a937f6b48fcfb5d5f34e63fb979e9cd7 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 27 Apr 2021 01:19:48 +1000 Subject: [PATCH] core: add function for clearing the status bar message --- app/core.cpp | 5 +++++ app/core.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/core.cpp b/app/core.cpp index aa5ccf066..2379a2bc0 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -1083,6 +1083,11 @@ void Core::ShowStatusBarMessage(const QString &s, int timeout) main_window_->statusBar()->showMessage(s, timeout); } +void Core::ClearStatusBarMessage() +{ + main_window_->statusBar()->clearMessage(); +} + void Core::OpenRecoveryProject(const QString &filename) { OpenProjectInternal(filename, true); diff --git a/app/core.h b/app/core.h index a8a18981c..67fb6a95d 100644 --- a/app/core.h +++ b/app/core.h @@ -298,6 +298,8 @@ public: */ void ShowStatusBarMessage(const QString& s, int timeout = 0); + void ClearStatusBarMessage(); + void OpenRecoveryProject(const QString& filename); void OpenNodeInViewer(ViewerOutput* viewer);