mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
only set password asset when not already set
This commit is contained in:
parent
559415f285
commit
5fc0c69065
1 changed files with 2 additions and 1 deletions
|
|
@ -401,7 +401,8 @@ bool CPasswordInputField::draw(const SRenderData& data) {
|
|||
fontCol.a = DOTALPHA;
|
||||
}
|
||||
} else if (passwordLength != 0) {
|
||||
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
|
||||
if (!password.asset)
|
||||
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
|
||||
|
||||
if (password.asset) {
|
||||
auto passSize = password.asset->texture.m_vSize;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue