Show the version running when connecting to incompatible remote server

This commit is contained in:
baldurk
2022-10-03 11:17:58 +01:00
parent 17e2271030
commit 39920c1b71
7 changed files with 67 additions and 9 deletions
+8 -1
View File
@@ -149,11 +149,18 @@ void RemoteManager::setRemoteServerLive(RDTreeWidgetItem *node, bool live, bool
QString text = live ? tr("Remote server running") : tr("No remote server");
if(host.IsConnected())
{
text += tr(" (Active Context)");
}
else if(host.IsVersionMismatch())
text += tr(" (Version Mismatch)");
{
QString message = host.VersionMismatchError();
text += QFormatStr(" (%1)").arg(message);
}
else if(host.IsBusy())
{
text += tr(" (Busy)");
}
node->setText(1, text);