Move IsLoaded check to more correct place

This commit is contained in:
Dean Herbert 2019-08-08 10:41:23 +09:00
parent a2e3ab6463
commit 40a33b3382
1 changed files with 2 additions and 3 deletions

View File

@ -40,7 +40,8 @@ public IReadOnlyList<BreakPeriod> Breaks
isBreakTime.Value = false;
CurrentBreakIndex = 0;
initializeBreaks();
if (IsLoaded)
initializeBreaks();
}
}
@ -162,8 +163,6 @@ private void updateBreakTimeBindable()
private void initializeBreaks()
{
if (!IsLoaded) return; // we need a clock.
FinishTransforms(true);
Scheduler.CancelDelayedTasks();