Skip to content
Snippets Groups Projects

Fix: skill gui live search

Merged Peter Albrecht requested to merge feature/skillMemoryGUI into master
6 files
+ 85
20
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -20,11 +20,11 @@ namespace armarx::skills::gui
// Stop skill
QAction* stopSkillAction = new QAction("Stop execution", this);
const auto& executions = memory->fetchExecutions();
const auto& executions = memory->getExecutions();
if (executions.count(selectedExecution.skillExecutionId) == 0)
return;
skills::SkillStatus currentStatus =
memory->fetchExecutions().at(selectedExecution.skillExecutionId).status;
memory->getExecutions().at(selectedExecution.skillExecutionId).status;
stopSkillAction->setDisabled(currentStatus == skills::SkillStatus::Aborted ||
currentStatus == skills::SkillStatus::Failed ||
currentStatus == skills::SkillStatus::Succeeded);
@@ -60,7 +60,7 @@ namespace armarx::skills::gui
return;
// we don't want to hold state in the gui, so we need to get the parameters from memory:
skills::SkillExecutionID currentExecutionId = this->selectedExecution.skillExecutionId;
auto executions = memory->fetchExecutions();
auto executions = memory->getExecutions();
if (executions.empty())
return;
@@ -142,7 +142,7 @@ namespace armarx::skills::gui
void
SkillExecutionTreeWidget::updateExecutions()
{
auto currentManagerStatuses = memory->fetchExecutions();
auto currentManagerStatuses = memory->getExecutions();
if (currentManagerStatuses.empty())
return;
Loading