Allow selecting/unselecting all locks for display.

This commit is contained in:
Bartosz Taudul 2018-04-09 16:15:40 +02:00
parent 0e6ce076f9
commit fd41b4927a
2 changed files with 17 additions and 0 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ v0.3 (xxxx-xx-xx)
zone info window.
- Fixed regression with lock announce processing that appeared during
worker/viewer split.
- Allow selecting/unselecting all locks for display.
v0.2 (2018-04-05)

View File

@ -2783,6 +2783,22 @@ void View::DrawOptions()
}
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() )
{
if( l.second.valid )