Make the annotations list always accessible.

This commit is contained in:
Bartosz Taudul 2022-03-15 17:25:52 +01:00
parent f17a579753
commit ba4b261ae4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -944,11 +944,7 @@ bool View::DrawImpl()
{ {
m_showCpuDataWindow = true; m_showCpuDataWindow = true;
} }
const auto anncnt = m_annotations.size(); ToggleButton( ICON_FA_STICKY_NOTE " Annotations", m_showAnnotationList );
if( ButtonDisablable( ICON_FA_STICKY_NOTE " Annotations", anncnt == 0 ) )
{
m_showAnnotationList = true;
}
ToggleButton( ICON_FA_RULER " Limits", m_showRanges ); ToggleButton( ICON_FA_RULER " Limits", m_showRanges );
const auto cscnt = m_worker.GetContextSwitchSampleCount(); const auto cscnt = m_worker.GetContextSwitchSampleCount();
if( ButtonDisablable( ICON_FA_HOURGLASS_HALF " Wait stacks", cscnt == 0 ) ) if( ButtonDisablable( ICON_FA_HOURGLASS_HALF " Wait stacks", cscnt == 0 ) )