mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05:00
Edit entry widget: password generator: fix flicker (#2584)
When using the password generator inside the Edit Entry screen and clicking the 'Accept' button, a new password would briefly be shown before the password generator was hidden (even though the original generated password would be applied to the entry). This issue was only visible when passwords were shown in plain text. Note that this is purely a cosmetic issue.
This commit is contained in:
parent
b6bb2ca06a
commit
d6ce6b85d5
@ -994,7 +994,9 @@ bool EditEntryWidget::hasBeenModified() const
|
||||
|
||||
void EditEntryWidget::togglePasswordGeneratorButton(bool checked)
|
||||
{
|
||||
m_mainUi->passwordGenerator->regeneratePassword();
|
||||
if (checked) {
|
||||
m_mainUi->passwordGenerator->regeneratePassword();
|
||||
}
|
||||
m_mainUi->passwordGenerator->setVisible(checked);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user