mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Allow selecting/unselecting all locks for display.
This commit is contained in:
parent
0e6ce076f9
commit
fd41b4927a
1
NEWS
1
NEWS
@ -24,6 +24,7 @@ v0.3 (xxxx-xx-xx)
|
|||||||
zone info window.
|
zone info window.
|
||||||
- Fixed regression with lock announce processing that appeared during
|
- Fixed regression with lock announce processing that appeared during
|
||||||
worker/viewer split.
|
worker/viewer split.
|
||||||
|
- Allow selecting/unselecting all locks for display.
|
||||||
|
|
||||||
|
|
||||||
v0.2 (2018-04-05)
|
v0.2 (2018-04-05)
|
||||||
|
@ -2783,6 +2783,22 @@ void View::DrawOptions()
|
|||||||
}
|
}
|
||||||
if( expand )
|
if( expand )
|
||||||
{
|
{
|
||||||
|
if( ImGui::SmallButton( "Select all" ) )
|
||||||
|
{
|
||||||
|
for( const auto& l : m_worker.GetLockMap() )
|
||||||
|
{
|
||||||
|
Visible( &l.second ) = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
if( ImGui::SmallButton( "Unselect all" ) )
|
||||||
|
{
|
||||||
|
for( const auto& l : m_worker.GetLockMap() )
|
||||||
|
{
|
||||||
|
Visible( &l.second ) = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for( const auto& l : m_worker.GetLockMap() )
|
for( const auto& l : m_worker.GetLockMap() )
|
||||||
{
|
{
|
||||||
if( l.second.valid )
|
if( l.second.valid )
|
||||||
|
Loading…
Reference in New Issue
Block a user