1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Make small callstack button tooltip optional.

This commit is contained in:
Bartosz Taudul
2019-02-27 02:27:05 +01:00
parent e20e7caab0
commit 851ae9077b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -9565,7 +9565,7 @@ void View::FindZonesCompare()
}
#endif
void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx )
void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx, bool tooltip )
{
bool hilite = m_callstackInfoWindow == callstack;
if( hilite )
@@ -9582,7 +9582,7 @@ void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx
{
ImGui::PopStyleColor( 3 );
}
if( ImGui::IsItemHovered() )
if( tooltip && ImGui::IsItemHovered() )
{
CallstackTooltip( callstack );
}