mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-28 04:46:54 -08:00
Allow specifing database backup paths. (#7035)
- Default backupFilePath is '{DB_FILENAME}.old.kdbx' to conform to existing standards
- Implement backupPathPattern tests.
- Show tooltip on how to format database backup location text field.
This commit is contained in:
1 parent
8d7e491810
commit
84ff6a13f9
25 files changed
+368
-81
No files matched your search
@@ -61,6 +61,7 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
|
||||
{Config::AutoSaveOnExit,{QS("AutoSaveOnExit"), Roaming, true}},
|
||||
{Config::AutoSaveNonDataChanges,{QS("AutoSaveNonDataChanges"), Roaming, true}},
|
||||
{Config::BackupBeforeSave,{QS("BackupBeforeSave"), Roaming, false}},
|
||||
{Config::BackupFilePathPattern,{QS("BackupFilePathPattern"), Roaming, QString("{DB_FILENAME}.old.kdbx")}},
|
||||
{Config::UseAtomicSaves,{QS("UseAtomicSaves"), Roaming, true}},
|
||||
{Config::UseDirectWriteSaves,{QS("UseDirectWriteSaves"), Local, false}},
|
||||
{Config::SearchLimitGroup,{QS("SearchLimitGroup"), Roaming, false}},
|
||||
@@ -229,6 +230,11 @@ QVariant Config::get(ConfigKey key)
|
||||
return m_settings->value(cfg.name, defaultValue);
|
||||
}
|
||||
|
||||
QVariant Config::getDefault(Config::ConfigKey key)
|
||||
{
|
||||
return configStrings[key].defaultValue;
|
||||
}
|
||||
|
||||
bool Config::hasAccessError()
|
||||
{
|
||||
return m_settings->status() & QSettings::AccessError;
|
||||
|
||||
Reference in new issue
Block a user