mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user