From 53ed451e05227272b009a40e0a0bc3979133d1e5 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Fri, 1 Mar 2024 11:03:54 +0100 Subject: [PATCH] input-field: let dots.currentAmount reset itself on a failure Now the dots kind of fade into the placeholder text on a failure. --- src/renderer/widgets/PasswordInputField.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index c07ed852..99ea3315 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -83,11 +83,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::system_clock::now() - dots.lastFrame).count(), 0, 20000); const float TOADD = DELTA / 1000000.0 * dots.speedPerSecond;