Skip to content

Commit

Permalink
input-field: let dots reset themselfs
Browse files Browse the repository at this point in the history
Now the dots kind of fade into the placeholder text on a failure.
  • Loading branch information
PaideiaDilemma committed Mar 6, 2024
1 parent 2b430c5 commit 5a62232
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/renderer/widgets/PasswordInputField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ void CPasswordInputField::updateDots() {
dots.lastFrame = std::chrono::system_clock::now();
}

if (PASSLEN == 0 && !placeholder.failID.empty()) {
dots.currentAmount = PASSLEN;
return;
}

const auto DELTA = std::clamp((int)std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now() - dots.lastFrame).count(), 0, 20000);

const float TOADD = DELTA / 1000000.0 * dots.speedPerSecond;
Expand Down

0 comments on commit 5a62232

Please sign in to comment.