mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 14:36:07 -05:00
parent
8a7be101e4
commit
64279bb881
@ -240,14 +240,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());
|
||||
m_ui->toggleEntryNotesButton->setChecked(false);
|
||||
} else {
|
||||
setEntryNotesVisible(true);
|
||||
m_ui->toggleEntryNotesButton->setVisible(false);
|
||||
}
|
||||
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);
|
||||
|
||||
if (config()->get(Config::GUI_MonospaceNotes).toBool()) {
|
||||
m_ui->entryNotesTextEdit->setFont(Font::fixedFont());
|
||||
|
Loading…
x
Reference in New Issue
Block a user