mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Enhance last used directory settings
* Use hash based storage for last used directories instead of a key/value for each type * Explicitly declare certain operations as sensitive and follow the "Remember Last Database" setting for those. * Introduce database backup directory location (close #6619)
This commit is contained in:
parent
5e68cd2fa2
commit
746276edea
13 changed files with 92 additions and 107 deletions
|
@ -1880,9 +1880,10 @@ bool DatabaseWidget::saveBackup()
|
|||
oldFilePath = QDir::toNativeSeparators(config()->get(Config::LastDir).toString() + "/"
|
||||
+ tr("Passwords").append(".kdbx"));
|
||||
}
|
||||
|
||||
const QString newFilePath = fileDialog()->getSaveFileName(this,
|
||||
tr("Save database backup"),
|
||||
oldFilePath,
|
||||
FileDialog::getLastDir("backup"),
|
||||
tr("KeePass 2 Database").append(" (*.kdbx)"),
|
||||
nullptr,
|
||||
nullptr);
|
||||
|
@ -1906,6 +1907,7 @@ bool DatabaseWidget::saveBackup()
|
|||
// Source database is marked as clean when copy is saved, even if source has unsaved changes
|
||||
m_db->markAsModified();
|
||||
}
|
||||
FileDialog::saveLastDir("backup", newFilePath, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue