input-field: fix wrong placeholder text for resourceID (#819)

This commit is contained in:
Maximilian Seidler 2025-07-11 09:25:42 +02:00 committed by GitHub
parent 46498da4a0
commit 17fefce86e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;