mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 05:27:39 +03: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
|
@ -276,6 +276,8 @@ void DatabaseWidget::updateSettings(bool accepted)
|
|||
m_db->metadata()->setDefaultUserName(m_databaseSettingsWidget->defaultUsername());
|
||||
m_db->metadata()->setRecycleBinEnabled(m_databaseSettingsWidget->recylceBinEnabled());
|
||||
m_db->metadata()->setName(m_databaseSettingsWidget->dbName());
|
||||
m_db->metadata()->setHistoryMaxItems(m_databaseSettingsWidget->historyMaxItems());
|
||||
m_db->metadata()->setHistoryMaxSize(m_databaseSettingsWidget->historyMaxSize());
|
||||
}
|
||||
|
||||
setCurrentIndex(0);
|
||||
|
@ -303,7 +305,9 @@ void DatabaseWidget::switchToDatabaseSettings()
|
|||
m_db->metadata()->description(),
|
||||
m_db->metadata()->defaultUserName(),
|
||||
m_db->metadata()->recycleBinEnabled(),
|
||||
m_db->transformRounds());
|
||||
m_db->transformRounds(),
|
||||
m_db->metadata()->historyMaxItems(),
|
||||
m_db->metadata()->historyMaxSize());
|
||||
setCurrentIndex(4);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue