From 17fefce86e6e857783aef38257af7a18be76323a Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Fri, 11 Jul 2025 09:25:42 +0200 Subject: [PATCH] input-field: fix wrong placeholder text for resourceID (#819) --- src/renderer/widgets/PasswordInputField.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/widgets/PasswordInputField.cpp b/src/renderer/widgets/PasswordInputField.cpp index 1339378..6098463 100644 --- a/src/renderer/widgets/PasswordInputField.cpp +++ b/src/renderer/widgets/PasswordInputField.cpp @@ -351,8 +351,7 @@ void CPasswordInputField::updatePlaceholder() { if (!ALLOWCOLORSWAP && newText == placeholder.currentText) return; - const auto NEWRESOURCEID = - std::format("placeholder:{}{}{}{}{}{}", placeholder.currentText, (uintptr_t)this, colorState.font.r, colorState.font.g, colorState.font.b, colorState.font.a); + const auto NEWRESOURCEID = std::format("placeholder:{}{}{}{}{}{}", newText, (uintptr_t)this, colorState.font.r, colorState.font.g, colorState.font.b, colorState.font.a); if (placeholder.resourceID == NEWRESOURCEID) return;