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:
Carlo Teubner 2019-01-16 16:03:33 +00:00 committed by Jonathan White
parent b6bb2ca06a
commit d6ce6b85d5

View File

@ -994,7 +994,9 @@ bool EditEntryWidget::hasBeenModified() const
void EditEntryWidget::togglePasswordGeneratorButton(bool checked)
{
if (checked) {
m_mainUi->passwordGenerator->regeneratePassword();
}
m_mainUi->passwordGenerator->setVisible(checked);
}