Clear message before showing a new one.
This commit is contained in:
@@ -224,6 +224,7 @@ void MainWindow::onReplaceLast(QString text, QString suffix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onShowErrorMessage(QString title, QString text) {
|
void MainWindow::onShowErrorMessage(QString title, QString text) {
|
||||||
this->statusBar()->showMessage( // timeout: 5000
|
this->statusBar()->clearMessage();
|
||||||
QString(title + ": " + text).leftJustified(80, ' '), 20000);
|
this->statusBar()->showMessage( // timeout: 10000
|
||||||
|
QString(title + ": " + text).leftJustified(80, ' '), 10000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user