Skip to content

Commit

Permalink
Add delay after hibernate
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev authored Feb 7, 2024
1 parent b896b6c commit 731fab9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/base/HyperHdrManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ void HyperHdrManager::hibernate(bool wakeUp, hyperhdr::SystemComponent source)

if (_hasEffect)
{
QTimer::singleShot(3000, [this, wakeUp]() { toggleGrabbersAllInstances(wakeUp); });
if (wakeUp)
QTimer::singleShot(3000, [this, wakeUp]() { toggleGrabbersAllInstances(wakeUp); });
else
toggleGrabbersAllInstances(wakeUp);

return;
}
}
Expand Down

0 comments on commit 731fab9

Please sign in to comment.