#4421 Python: Add GRPC status to About dialog

* If the finish comes because the server is shut down,
  there is no m_eclipseCase
This commit is contained in:
Gaute Lindkvist
2019-06-09 15:35:31 +02:00
parent 0507c5d775
commit c2bad4a686
9 changed files with 259 additions and 4 deletions

View File

@@ -121,6 +121,20 @@ void RicHelpAboutFeature::onActionTriggered(bool isChecked)
dlg.addVersionEntry(" ", txt);
}
#ifdef ENABLE_GRPC
RiaGrpcServer* grpcServer = RiaApplication::instance()->grpcServer();
if (grpcServer && grpcServer->isRunning())
{
dlg.addVersionEntry(" ", QString(" gRPC available and running at port %1").arg(grpcServer->portNumber()));
}
else
{
dlg.addVersionEntry(" ", QString(" gRPC available but currently disabled in preferences"));
}
#else
dlg.addVersionEntry(" ", " gRPC disabled");
#endif
if (RiaApplication::enableDevelopmentFeatures())
{
QString vendor("Unknown");