Mark activity when buzz anim is enabled.

This commit is contained in:
Bartosz Taudul 2022-09-28 01:01:22 +02:00
parent 6552108f52
commit 8117d7d4d4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 12 additions and 9 deletions

View File

@ -629,6 +629,7 @@ bool View::DrawImpl()
}
const auto& io = ImGui::GetIO();
m_wasActive = false;
assert( m_shortcut == ShortcutAction::None );
if( io.KeyCtrl )
@ -1069,14 +1070,14 @@ bool View::DrawImpl()
}
}
m_callstackBuzzAnim.Update( io.DeltaTime );
m_sampleParentBuzzAnim.Update( io.DeltaTime );
m_callstackTreeBuzzAnim.Update( io.DeltaTime );
m_zoneinfoBuzzAnim.Update( io.DeltaTime );
m_findZoneBuzzAnim.Update( io.DeltaTime );
m_optionsLockBuzzAnim.Update( io.DeltaTime );
m_lockInfoAnim.Update( io.DeltaTime );
m_statBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_callstackBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_sampleParentBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_callstackTreeBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_zoneinfoBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_findZoneBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_optionsLockBuzzAnim.Update( io.DeltaTime );
m_wasActive |= m_lockInfoAnim.Update( io.DeltaTime );
m_wasActive |= m_statBuzzAnim.Update( io.DeltaTime );
if( m_firstFrame )
{
@ -1290,7 +1291,8 @@ void View::HighlightThread( uint64_t thread )
bool View::WasActive() const
{
return m_zoomAnim.active ||
return m_wasActive ||
m_zoomAnim.active ||
m_notificationTime > 0 ||
m_worker.IsConnected() ||
!m_worker.IsBackgroundDone();

View File

@ -555,6 +555,7 @@ private:
std::vector<std::unique_ptr<Annotation>> m_annotations;
UserData m_userData;
bool m_wasActive = false;
bool m_reconnectRequested = false;
bool m_firstFrame = true;
std::chrono::time_point<std::chrono::high_resolution_clock> m_firstFrameTime;