mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 18:40:06 +00:00
Overlay layer should not need to latch load status
- Causes false NO DATA AVAILABLE indications when changing products
This commit is contained in:
parent
b0c7554f47
commit
1f8cd8ee39
1 changed files with 0 additions and 19 deletions
|
|
@ -153,9 +153,6 @@ public:
|
|||
float lastFontSize_ {0.0f};
|
||||
QMargins lastColorTableMargins_ {};
|
||||
|
||||
types::RadarProductLoadStatus latchedLoadStatus_ {
|
||||
types::RadarProductLoadStatus::ProductNotAvailable};
|
||||
|
||||
double cursorScale_ {1};
|
||||
boost::signals2::scoped_connection cursorScaleConnection_;
|
||||
|
||||
|
|
@ -477,16 +474,6 @@ void OverlayLayer::Render(const std::shared_ptr<MapContext>& mapContext,
|
|||
|
||||
ImGuiFrameEnd();
|
||||
|
||||
if (radarProductView != nullptr &&
|
||||
// Don't latch a transition from Not Available to Listing Products
|
||||
!(p->latchedLoadStatus_ ==
|
||||
types::RadarProductLoadStatus::ProductNotAvailable &&
|
||||
newLoadStatus == types::RadarProductLoadStatus::ListingProducts))
|
||||
{
|
||||
// Latch last load status
|
||||
p->latchedLoadStatus_ = newLoadStatus;
|
||||
}
|
||||
|
||||
SCWX_GL_CHECK_ERROR();
|
||||
}
|
||||
|
||||
|
|
@ -552,12 +539,6 @@ void OverlayLayer::Impl::RenderProductDetails(
|
|||
productNotAvailable = true;
|
||||
break;
|
||||
|
||||
case types::RadarProductLoadStatus::ListingProducts:
|
||||
productNotAvailable =
|
||||
latchedLoadStatus_ ==
|
||||
types::RadarProductLoadStatus::ProductNotAvailable;
|
||||
break;
|
||||
|
||||
default:
|
||||
productNotAvailable = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue