mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
committed by
Jonathan White
parent
f08086529b
commit
9ae5b49136
@@ -245,14 +245,14 @@ void EntryPreviewWidget::updateEntryGeneralTab()
|
||||
m_ui->togglePasswordButton->setVisible(false);
|
||||
}
|
||||
|
||||
if (config()->get(Config::Security_HideNotes).toBool()) {
|
||||
setEntryNotesVisible(false);
|
||||
m_ui->toggleEntryNotesButton->setVisible(!m_ui->entryNotesTextEdit->toPlainText().isEmpty());
|
||||
auto hasNotes = !m_currentEntry->notes().isEmpty();
|
||||
auto hideNotes = config()->get(Config::Security_HideNotes).toBool();
|
||||
|
||||
m_ui->entryNotesTextEdit->setVisible(hasNotes);
|
||||
setEntryNotesVisible(hasNotes && !hideNotes);
|
||||
m_ui->toggleEntryNotesButton->setVisible(hasNotes && hideNotes
|
||||
&& !m_ui->entryNotesTextEdit->toPlainText().isEmpty());
|
||||
m_ui->toggleEntryNotesButton->setChecked(false);
|
||||
} else {
|
||||
setEntryNotesVisible(true);
|
||||
m_ui->toggleEntryNotesButton->setVisible(false);
|
||||
}
|
||||
|
||||
if (config()->get(Config::GUI_MonospaceNotes).toBool()) {
|
||||
m_ui->entryNotesTextEdit->setFont(Font::fixedFont());
|
||||
|
||||
Reference in New Issue
Block a user