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);
std::for_each(std::execution::par_unseq,
productButtons_.cbegin(),
std::for_each(productButtons_.cbegin(),
productButtons_.cend(),
[&](auto& toolButton)
{

View file

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