move connection error to status bar, lib update

This commit is contained in:
lucretius
2024-02-06 17:15:43 +01:00
parent da09dc0ae2
commit 26182290f5
3 changed files with 5 additions and 8 deletions

View File

@@ -607,12 +607,9 @@ void Controller::getInfoThenRefresh(bool force)
if (!shown && prevCallSucceeded) // show error only first time
{
shown = true;
QMessageBox::critical(
main,
QObject::tr("Connection Error"),
QObject::tr("There was an error connecting to the server. Please check your internet connection. The error was") + ": \n\n"+ err,
QMessageBox::StandardButton::Ok
);
QString errorMessage = QObject::tr("There was an error connecting to the server. Please check your internet connection. The error was") + ": \n\n" + err;
ui->statusBar->showMessage(errorMessage, 5000);
shown = false;
}