mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-08 18:02:51 -05:00
Add gui option for history max items and size to database settings widget.
This commit is contained in:
parent
1a74feb253
commit
1c24b2c5c4
6 changed files with 162 additions and 17 deletions
|
|
@ -31,8 +31,8 @@ Metadata::Metadata(Database* parent)
|
|||
m_recycleBinEnabled = true;
|
||||
m_masterKeyChangeRec = -1;
|
||||
m_masterKeyChangeForce = -1;
|
||||
m_historyMaxItems = 10;
|
||||
m_historyMaxSize = 6291456;
|
||||
m_historyMaxItems = defaultHistoryMaxItems;
|
||||
m_historyMaxSize = defaultHistoryMaxSize;
|
||||
|
||||
QDateTime now = Tools::currentDateTimeUtc();
|
||||
m_nameChanged = now;
|
||||
|
|
@ -52,6 +52,9 @@ Metadata::Metadata(Database* parent)
|
|||
m_updateDatetime = true;
|
||||
}
|
||||
|
||||
const int Metadata::defaultHistoryMaxItems = 10;
|
||||
const int Metadata::defaultHistoryMaxSize = 6291456;
|
||||
|
||||
template <class P, class V> bool Metadata::set(P& property, const V& value)
|
||||
{
|
||||
if (property != value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue