Fix entry notes reveal button requiring two clicks sometimes

This commit is contained in:
Jonathan White 2024-10-11 17:32:49 -04:00
parent d57d167e9c
commit 02881889d5

View File

@ -913,6 +913,7 @@ void EditEntryWidget::setForms(Entry* entry, bool restore)
m_mainUi->expireDatePicker->setReadOnly(m_history);
m_mainUi->revealNotesButton->setIcon(icons()->onOffIcon("password-show", false));
m_mainUi->revealNotesButton->setVisible(config()->get(Config::Security_HideNotes).toBool());
m_mainUi->revealNotesButton->setChecked(false);
m_mainUi->notesEdit->setReadOnly(m_history);
m_mainUi->notesEdit->setVisible(!config()->get(Config::Security_HideNotes).toBool());
if (config()->get(Config::GUI_MonospaceNotes).toBool()) {