Oops, foreground check needs to actually loop

This commit is contained in:
Steve Streeting 2021-07-21 11:20:35 +01:00
parent 506f5612c0
commit 1ef851bce4

View File

@ -56,7 +56,7 @@ void UStevesGameSubsystem::InitTheme()
void UStevesGameSubsystem::InitForegroundCheck()
{
// Check foreground status every 0.5 seconds
GetWorld()->GetTimerManager().SetTimer(ForegroundCheckHandle, this, &UStevesGameSubsystem::CheckForeground, 0.5);
GetWorld()->GetTimerManager().SetTimer(ForegroundCheckHandle, this, &UStevesGameSubsystem::CheckForeground, 0.5, true);
}
void UStevesGameSubsystem::CheckForeground()