Skip to content

Commit

Permalink
prevent multiple log messages if badge file not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Aug 17, 2024
1 parent 3ec349e commit 99e6a22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/viewmodels/OverlayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,11 @@ void OverlayManager::ProcessScreenshots()
}
else
{
RA_LOG_INFO("Image no longer available for %s", iter->second);
if (!pScreenshot.bDelayed)
{
pScreenshot.bDelayed = true;
RA_LOG_INFO("Image %s not available for %s", pImageReference.Name(), iter->second);
}
++iter;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/ui/viewmodels/OverlayManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ private:
int nFrameId = 0;
std::unique_ptr<ra::ui::drawing::ISurface> pScreen;
std::map<int, std::wstring> vMessages;
bool bDelayed = false;
};
std::vector<Screenshot> m_vScreenshotQueue;
std::mutex m_pScreenshotQueueMutex;
Expand Down

0 comments on commit 99e6a22

Please sign in to comment.