mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-28 15:27:18 -05:00
parent
8a7be101e4
commit
64279bb881
@ -240,14 +240,14 @@ void EntryPreviewWidget::updateEntryGeneralTab()
|
|||||||
m_ui->togglePasswordButton->setVisible(false);
|
m_ui->togglePasswordButton->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config()->get(Config::Security_HideNotes).toBool()) {
|
auto hasNotes = !m_currentEntry->notes().isEmpty();
|
||||||
setEntryNotesVisible(false);
|
auto hideNotes = config()->get(Config::Security_HideNotes).toBool();
|
||||||
m_ui->toggleEntryNotesButton->setVisible(!m_ui->entryNotesTextEdit->toPlainText().isEmpty());
|
|
||||||
|
m_ui->entryNotesTextEdit->setVisible(hasNotes);
|
||||||
|
setEntryNotesVisible(hasNotes && !hideNotes);
|
||||||
|
m_ui->toggleEntryNotesButton->setVisible(hasNotes && hideNotes
|
||||||
|
&& !m_ui->entryNotesTextEdit->toPlainText().isEmpty());
|
||||||
m_ui->toggleEntryNotesButton->setChecked(false);
|
m_ui->toggleEntryNotesButton->setChecked(false);
|
||||||
} else {
|
|
||||||
setEntryNotesVisible(true);
|
|
||||||
m_ui->toggleEntryNotesButton->setVisible(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config()->get(Config::GUI_MonospaceNotes).toBool()) {
|
if (config()->get(Config::GUI_MonospaceNotes).toBool()) {
|
||||||
m_ui->entryNotesTextEdit->setFont(Font::fixedFont());
|
m_ui->entryNotesTextEdit->setFont(Font::fixedFont());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user