Skip to content

Commit d46d437

Browse files
input-field: let dots reset themselfs
Now the dots kind of fade into the placeholder text on a failure.
1 parent 8efee58 commit d46d437

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/renderer/widgets/PasswordInputField.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ void CPasswordInputField::updateDots() {
105105
dots.lastFrame = std::chrono::system_clock::now();
106106
}
107107

108-
if (PASSLEN == 0 && !placeholder.failID.empty()) {
109-
dots.currentAmount = PASSLEN;
110-
return;
111-
}
112-
113108
const auto DELTA = std::clamp((int)std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::system_clock::now() - dots.lastFrame).count(), 0, 20000);
114109

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

0 commit comments

Comments
 (0)