mirror of
https://github.com/wolfpld/tracy
synced 2026-01-19 04:52:09 +00:00
Fake a progress indicator.
This commit is contained in:
@@ -171,8 +171,10 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
|
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
bool clicked = false;
|
||||||
if( ImGui::SmallButton( ICON_FA_TAG ) )
|
if( ImGui::SmallButton( ICON_FA_TAG ) )
|
||||||
{
|
{
|
||||||
|
clicked = true;
|
||||||
nlohmann::json req = {
|
nlohmann::json req = {
|
||||||
{
|
{
|
||||||
{ "role", "system" },
|
{ "role", "system" },
|
||||||
@@ -236,6 +238,11 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextUnformatted( it->second.c_str() );
|
ImGui::TextUnformatted( it->second.c_str() );
|
||||||
|
if( clicked ) it->second = "…";
|
||||||
|
}
|
||||||
|
else if( clicked )
|
||||||
|
{
|
||||||
|
m_callstackDesc.emplace( callstack, "…" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user