Selecting a zone in time distribution list opens zone statistics.

This commit is contained in:
Bartosz Taudul 2019-11-03 03:08:23 +01:00
parent 13a7444f03
commit acce6867f1

View File

@ -6364,7 +6364,11 @@ void View::DrawZoneInfoWindow()
const auto& sl = m_worker.GetSourceLocation( v->first );
SmallColorBox( GetSrcLocColor( sl, 0 ) );
ImGui::SameLine();
ImGui::TextUnformatted( m_worker.GetZoneName( sl ) );
const auto name = m_worker.GetZoneName( sl );
if( ImGui::Selectable( name, false, ImGuiSelectableFlags_SpanAllColumns ) )
{
m_findZone.ShowZone( v->first, name );
}
ImGui::SameLine();
ImGui::TextDisabled( "(\xc3\x97%s)", RealToString( v->second.count, true ) );
ImGui::NextColumn();