Add a delayed callback helper for python

This commit is contained in:
baldurk
2025-09-09 18:57:34 +01:00
parent b3cec5a4cf
commit b4615dbd18
5 changed files with 22 additions and 0 deletions
+5
View File
@@ -1799,6 +1799,11 @@ void CaptureContext::RemoveBookmark(uint32_t EID)
RefreshUIStatus({}, true, true);
}
void CaptureContext::DelayedCallback(uint32_t milliseconds, std::function<void()> callback)
{
QTimer::singleShot(milliseconds, callback);
}
void CaptureContext::SetModification(CaptureModifications mod)
{
m_CaptureMods |= mod;