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 Felix Salcher
parent 62de8de35a
commit cd1c1af1ee
No known key found for this signature in database

View file

@ -495,8 +495,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;