mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-24 19:00:02 +01:00
input-field: fix wrong placeholder text for resourceID (#819)
This commit is contained in:
parent
46498da4a0
commit
17fefce86e
1 changed files with 1 additions and 2 deletions
|
|
@ -351,8 +351,7 @@ void CPasswordInputField::updatePlaceholder() {
|
||||||
if (!ALLOWCOLORSWAP && newText == placeholder.currentText)
|
if (!ALLOWCOLORSWAP && newText == placeholder.currentText)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const auto NEWRESOURCEID =
|
const auto NEWRESOURCEID = std::format("placeholder:{}{}{}{}{}{}", newText, (uintptr_t)this, colorState.font.r, colorState.font.g, colorState.font.b, colorState.font.a);
|
||||||
std::format("placeholder:{}{}{}{}{}{}", placeholder.currentText, (uintptr_t)this, colorState.font.r, colorState.font.g, colorState.font.b, colorState.font.a);
|
|
||||||
|
|
||||||
if (placeholder.resourceID == NEWRESOURCEID)
|
if (placeholder.resourceID == NEWRESOURCEID)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue