From ba4b261ae45e36d230a8f223282177c5ca41df25 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 15 Mar 2022 17:25:52 +0100 Subject: [PATCH] Make the annotations list always accessible. --- server/TracyView.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index aa1fb2a2..27513c37 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -944,11 +944,7 @@ bool View::DrawImpl() { m_showCpuDataWindow = true; } - const auto anncnt = m_annotations.size(); - if( ButtonDisablable( ICON_FA_STICKY_NOTE " Annotations", anncnt == 0 ) ) - { - m_showAnnotationList = true; - } + ToggleButton( ICON_FA_STICKY_NOTE " Annotations", m_showAnnotationList ); ToggleButton( ICON_FA_RULER " Limits", m_showRanges ); const auto cscnt = m_worker.GetContextSwitchSampleCount(); if( ButtonDisablable( ICON_FA_HOURGLASS_HALF " Wait stacks", cscnt == 0 ) )