Add thread color box to crash info.

This commit is contained in:
Bartosz Taudul 2019-09-24 23:42:25 +02:00
parent c73a74b8d5
commit 6ffbd00b0c

View File

@ -10655,6 +10655,8 @@ void View::DrawInfo()
TextFocused( "Thread:", m_worker.GetThreadName( crash.thread ) ); TextFocused( "Thread:", m_worker.GetThreadName( crash.thread ) );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( crash.thread, true ) ); ImGui::TextDisabled( "(%s)", RealToString( crash.thread, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( crash.thread, 0 ) );
TextDisabledUnformatted( "Reason:" ); TextDisabledUnformatted( "Reason:" );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextWrapped( "%s", m_worker.GetString( crash.message ) ); ImGui::TextWrapped( "%s", m_worker.GetString( crash.message ) );