From 5a622325d56c4dcd53ab9b86dc9fec6aa8027aa1 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Wed, 6 Mar 2024 11:38:37 +0100 Subject: [PATCH] input-field: let dots reset themselfs 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 8c5276b4..cf8bafb7 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -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::system_clock::now() - dots.lastFrame).count(), 0, 20000); const float TOADD = DELTA / 1000000.0 * dots.speedPerSecond;