Add direct write save option

* Closes #6335
* Modify application settings presentation to  allow for alternative saving strategies
* Transition Database::save calls to using flags to control saving behavior. Reduces boolean flags on function call.
* Made direct write save option a local setting to prevent unintentional carry over between platforms.
This commit is contained in:
Jonathan White committed 2021-10-09 11:12:25 -04:00
1 parent 484bc5dd01
commit f2aa32c7b0
18 files changed
+158 -64

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ int Import::execute(const QStringList& arguments)
return EXIT_FAILURE;
}
if (!db->saveAs(dbPath, &errorMessage, true, false)) {
if (!db->saveAs(dbPath, Database::Atomic, false, &errorMessage)) {
err << QObject::tr("Failed to save the database: %1.").arg(errorMessage) << endl;
return EXIT_FAILURE;
}