core: add status bar timeout

This commit is contained in:
itsmattkc
2021-04-27 00:48:37 +10:00
parent 542e5f4f7b
commit 81cc665ff2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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);