mirror of
https://github.com/wolfpld/tracy
synced 2025-05-05 22:53:52 +00:00
Display crash icon in notification area.
This commit is contained in:
parent
b8794f64be
commit
bc3c375b02
@ -595,6 +595,28 @@ bool View::DrawImpl()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const auto ty = ImGui::GetFontSize();
|
const auto ty = ImGui::GetFontSize();
|
||||||
|
auto& crash = m_worker.GetCrashEvent();
|
||||||
|
if( crash.thread != 0 )
|
||||||
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
TextColoredUnformatted( ImVec4( 1, 0, 0, 1 ), ICON_FA_SKULL );
|
||||||
|
#else
|
||||||
|
TextColoredUnformatted( ImVec4( 1, 0, 0, 1 ), "crash" );
|
||||||
|
#endif
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
CrashTooltip();
|
||||||
|
if( ImGui::IsMouseClicked( 0 ) )
|
||||||
|
{
|
||||||
|
m_showInfo = true;
|
||||||
|
}
|
||||||
|
if( ImGui::IsMouseClicked( 2 ) )
|
||||||
|
{
|
||||||
|
CenterAtTime( crash.time );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if( !m_worker.IsBackgroundDone() )
|
if( !m_worker.IsBackgroundDone() )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user