Prevent in-flight query notification flicker.

This commit is contained in:
Bartosz Taudul
2026-05-07 22:34:48 +02:00
parent 305382453d
commit db8bfc9ba9
2 changed files with 3 additions and 1 deletions

View File

@@ -641,6 +641,7 @@ private:
AttentionCallback m_acb;
float m_notificationTime = 0;
float m_sendInFlightTime = 0;
std::string m_notificationText;
bool m_groupCallstackTreeByNameBottomUp = true;

View File

@@ -54,7 +54,8 @@ void View::DrawNotificationArea()
else
{
const auto sif = m_worker.GetSendInFlight();
if( sif != 0 )
if( sif != 0 ) m_sendInFlightTime = s_time;
if( s_time - m_sendInFlightTime < 0.1f )
{
ImGui::SameLine();
TextColoredUnformatted( ImVec4( 1, 0.75f, 0, 1 ), ICON_FA_SATELLITE_DISH );