Skip to content
Snippets Groups Projects
Commit cc8c27dd authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Disable remote gui for example memory by default

parent 09677728
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,9 @@ namespace armarx
"If enabled, core segments are added when required by a new provider segment."
"This will usually be off for most memory servers.");
defs->optional(p.enableRemoteGui, "p.enableRemoteGui",
"If true, the memory cotent is shown in the remote gui."
"Can be very slow for high-frequency updates!");
return defs;
}
......@@ -60,6 +63,7 @@ namespace armarx
return "ExampleMemory";
}
void ExampleMemory::onInitComponent()
{
// Usually, the memory server will specify a number of core segments with a specific aron type.
......@@ -80,8 +84,11 @@ namespace armarx
void ExampleMemory::onConnectComponent()
{
createRemoteGuiTab();
RemoteGui_startRunningTask();
if (p.enableRemoteGui)
{
createRemoteGuiTab();
RemoteGui_startRunningTask();
}
}
void ExampleMemory::onDisconnectComponent()
......
......@@ -96,6 +96,8 @@ namespace armarx
};
CoreSegments core;
bool enableRemoteGui = false;
};
Properties p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment