diff --git a/src/core/AnimationManager.cpp b/src/core/AnimationManager.cpp index 4203015..30d38b2 100644 --- a/src/core/AnimationManager.cpp +++ b/src/core/AnimationManager.cpp @@ -66,13 +66,14 @@ void updateGradientVariable(CAnimatedVariable& av, const flo }; av.value().m_vColors[i] = {lerped, lerp(sourceCol.a, targetCol.a, POINTY)}; - av.value().updateColorsOk(); } if (av.begun().m_fAngle != av.goal().m_fAngle) { const float DELTA = av.goal().m_fAngle - av.begun().m_fAngle; av.value().m_fAngle = av.begun().m_fAngle + DELTA * POINTY; } + + av.value().updateColorsOk(); } void CHyprlockAnimationManager::tick() { diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index e08fca7..2ee1c98 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -288,8 +288,10 @@ bool CPasswordInputField::draw(const SRenderData& data) { } static void failTimeoutCallback(std::shared_ptr self, void* data) { - g_pAuth->m_bDisplayFailText = false; - g_pHyprlock->renderAllOutputs(); + if (g_pAuth->m_bDisplayFailText) { + g_pAuth->m_bDisplayFailText = false; + g_pHyprlock->renderAllOutputs(); + } } void CPasswordInputField::updatePlaceholder() {