mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't show pause/resume button if data is static.
This commit is contained in:
parent
d8ac7dee83
commit
cb4c1dac24
@ -289,8 +289,11 @@ void View::DrawImpl()
|
||||
|
||||
std::lock_guard<NonRecursiveBenaphore> lock( m_worker.GetDataLock() );
|
||||
ImGui::Begin( m_worker.GetCaptureName().c_str(), nullptr, ImGuiWindowFlags_NoScrollbar );
|
||||
if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 70, 0 ) ) ) m_pause = !m_pause;
|
||||
ImGui::SameLine();
|
||||
if( !m_worker.IsDataStatic() )
|
||||
{
|
||||
if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 70, 0 ) ) ) m_pause = !m_pause;
|
||||
ImGui::SameLine();
|
||||
}
|
||||
if( ImGui::Button( "Options", ImVec2( 70, 0 ) ) ) m_showOptions = true;
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( "Messages", ImVec2( 70, 0 ) ) ) m_showMessages = true;
|
||||
|
Loading…
Reference in New Issue
Block a user