mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Fix additional UI update threading issues
This commit is contained in:
		
							parent
							
								
									4e4cc4c9fb
								
							
						
					
					
						commit
						1b71143d71
					
				
					 2 changed files with 2 additions and 5 deletions
				
			
		|  | @ -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) | ||||||
|                  { |                  { | ||||||
|  |  | ||||||
|  | @ -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) | ||||||
|                  { |                  { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat