[Core] Use FCBak extension with timestamp by default
This commit is contained in:
committed by
Chris Hennes
parent
092c906fe6
commit
17e265259c
@@ -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");
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user