Fix additional UI update threading issues

This commit is contained in:
Dan Paulat 2023-04-11 23:14:53 -05:00
parent 4e4cc4c9fb
commit 1b71143d71
2 changed files with 2 additions and 5 deletions

View file

@ -119,8 +119,7 @@ void Level2ProductsWidgetImpl::UpdateProductSelection(
{ {
const std::string& productName = common::GetLevel2Name(product); const std::string& productName = common::GetLevel2Name(product);
std::for_each(std::execution::par_unseq, std::for_each(productButtons_.cbegin(),
productButtons_.cbegin(),
productButtons_.cend(), productButtons_.cend(),
[&](auto& toolButton) [&](auto& toolButton)
{ {

View file

@ -51,7 +51,6 @@ public:
void NormalizeElevationButtons(); void NormalizeElevationButtons();
void SelectElevation(float elevation); void SelectElevation(float elevation);
void UpdateSettings();
Level2SettingsWidget* self_; Level2SettingsWidget* self_;
QLayout* layout_; QLayout* layout_;
@ -135,8 +134,7 @@ void Level2SettingsWidget::UpdateElevationSelection(float elevation)
QString buttonText {QString::number(elevation, 'f', 1) + QString buttonText {QString::number(elevation, 'f', 1) +
common::Characters::DEGREE}; common::Characters::DEGREE};
std::for_each(std::execution::par_unseq, std::for_each(p->elevationButtons_.cbegin(),
p->elevationButtons_.cbegin(),
p->elevationButtons_.cend(), p->elevationButtons_.cend(),
[&](auto& toolButton) [&](auto& toolButton)
{ {