[Core] Use FCBak extension with timestamp by default

This commit is contained in:
Ajinkya Dahale
2023-05-26 16:59:54 +05:30
committed by Chris Hennes
parent 092c906fe6
commit 17e265259c
2 changed files with 5 additions and 2 deletions

View File

@@ -1556,7 +1556,7 @@ public:
BackupPolicy() {
policy = Standard;
numberOfFiles = 1;
useFCBakExtension = false;
useFCBakExtension = true;
saveBackupDateFormat = "%Y%m%d-%H%M%S";
}
~BackupPolicy() = default;
@@ -1928,7 +1928,7 @@ bool Document::saveToFile(const char* filename) const
count_bak = -1;
}
bool useFCBakExtension = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("UseFCBakExtension",false);
("User parameter:BaseApp/Preferences/Document")->GetBool("UseFCBakExtension",true);
std::string saveBackupDateFormat = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetASCII("SaveBackupDateFormat","%Y%m%d-%H%M%S");

View File

@@ -511,6 +511,9 @@ Common sizes are 128, 256 and 512</string>
<string>Backup files will get extension '.FCbak' and file names
get date suffix according to the specified format</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>Use date and FCBak extension</string>
</property>