Use layer names in ImGui Context names

This commit is contained in:
AdenKoperczak 2025-03-19 14:14:43 -04:00
parent ec296d98eb
commit 2be140d291
9 changed files with 38 additions and 25 deletions

View file

@ -229,7 +229,10 @@ public:
AlertLayer::AlertLayer(std::shared_ptr<MapContext> context,
awips::Phenomenon phenomenon) :
DrawLayer(context), p(std::make_unique<Impl>(this, context, phenomenon))
DrawLayer(
context,
fmt::format("AlertLayer {}", awips::GetPhenomenonText(phenomenon))),
p(std::make_unique<Impl>(this, context, phenomenon))
{
for (auto alertActive : {false, true})
{