From 2bce9319d0c1992b6956eb294f219d3ea7fc0a15 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 31 Jul 2020 17:51:47 +0200 Subject: [PATCH] Allow focusing to find zone time range. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 04d4e186..e4c00327 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -14633,6 +14633,8 @@ void View::DrawRanges() TextFocused( "-", TimeToStringExact( m_findZone.range.max ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", TimeToString( m_findZone.range.max - m_findZone.range.min ) ); + if( ImGui::SmallButton( ICON_FA_MICROSCOPE " Focus" ) ) ZoomToRange( m_findZone.range.min, m_findZone.range.max ); + ImGui::SameLine(); if( SmallButtonDisablable( ICON_FA_STICKY_NOTE " Set from annotation", m_annotations.empty() ) ) ImGui::OpenPopup( "RangeFindZoneCopyFrom" ); if( ImGui::BeginPopup( "RangeFindZoneCopyFrom" ) ) {