mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:30:05 +00:00
Don't allow hover over sweep time if there is no data to display, preventing crash
This commit is contained in:
parent
c42d60a97d
commit
447f3ee821
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ void OverlayLayer::Render(
|
||||||
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize |
|
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize |
|
||||||
ImGuiWindowFlags_AlwaysAutoResize);
|
ImGuiWindowFlags_AlwaysAutoResize);
|
||||||
|
|
||||||
if (ImGui::IsWindowHovered())
|
if (radarProductView != nullptr && ImGui::IsWindowHovered())
|
||||||
{
|
{
|
||||||
// Show a detailed product description when the sweep time is hovered
|
// Show a detailed product description when the sweep time is hovered
|
||||||
p->sweepTimePicked_ = true;
|
p->sweepTimePicked_ = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue