Skip to content

Commit 96e8aff

Browse files
committed
Fix timer pasting logic
1 parent 017b137 commit 96e8aff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnityPomodoro/Assets/AdrianMiasik/Scripts/Components/DigitFormat.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,9 @@ public void SetTimerValue(string _formattedString)
572572
// Set timer sections
573573
// Check if we have enough generated digits...(We will allow users to paste longer values, but only
574574
// carry over the values that can fit within the number of generated digits we have)
575-
if (generatedDigits.Count >= _sections.Count)
575+
if (_sections.Count >= generatedDigits.Count)
576576
{
577-
for (int _i = 0; _i < _sections.Count; _i++)
577+
for (int _i = 0; _i < generatedDigits.Count; _i++)
578578
{
579579
generatedDigits[_i].SetValue(int.Parse(_sections[_i]));
580580
generatedDigits[_i].UpdateVisuals(GetDigitValue(generatedDigits[_i].digit));

0 commit comments

Comments
 (0)