mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-08 22:08:02 +02:00
set password text asset to nullptr after unloading it
This commit is contained in:
parent
fa32e0ea35
commit
fbd0b644f6
1 changed files with 2 additions and 1 deletions
|
|
@ -267,7 +267,8 @@ bool CPasswordInputField::draw(const SRenderData& data) {
|
|||
|
||||
if (passwordLength != g_pHyprlock->getPasswordBufferDisplayLen() && password.show) {
|
||||
g_pRenderer->asyncResourceGatherer->unloadAsset(password.text.asset);
|
||||
password.show = false;
|
||||
password.text.asset = nullptr;
|
||||
password.show = false;
|
||||
}
|
||||
|
||||
passwordLength = g_pHyprlock->getPasswordBufferDisplayLen();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue