mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:40:05 +00:00
Update placefile text data outside of render loop, polygon cleanup
This commit is contained in:
parent
8f2b87790a
commit
b159540215
6 changed files with 60 additions and 36 deletions
|
|
@ -815,6 +815,12 @@ void MapWidgetImpl::UpdatePlacefileLayers()
|
|||
placefileLayers_.push_back(placefileLayer);
|
||||
AddLayer(
|
||||
GetPlacefileLayerName(placefileName), placefileLayer, "colorTable");
|
||||
|
||||
// When the layer updates, trigger a map widget update
|
||||
connect(placefileLayer.get(),
|
||||
&PlacefileLayer::DataReloaded,
|
||||
widget_,
|
||||
[this]() { widget_->update(); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue