Change default file saving preferences (#10781)
* Change default compression level from 3 to 7 * increase default thumbnail size to 256
This commit is contained in:
@@ -1895,7 +1895,7 @@ bool Document::saveToFile(const char* filename) const
|
||||
signalStartSave(*this, filename);
|
||||
|
||||
auto hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document");
|
||||
int compression = hGrp->GetInt("CompressionLevel",3);
|
||||
int compression = hGrp->GetInt("CompressionLevel",7);
|
||||
compression = Base::clamp<int>(compression, Z_NO_COMPRESSION, Z_BEST_COMPRESSION);
|
||||
|
||||
bool policy = App::GetApplication().GetParameterGroupByPath
|
||||
|
||||
@@ -1354,7 +1354,7 @@ void Document::Save (Base::Writer &writer) const
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document");
|
||||
if (hGrp->GetBool("SaveThumbnail", true)) {
|
||||
int size = hGrp->GetInt("ThumbnailSize", 128);
|
||||
int size = hGrp->GetInt("ThumbnailSize", 256);
|
||||
size = Base::clamp<int>(size, 64, 512);
|
||||
std::list<MDIView*> mdi = getMDIViews();
|
||||
for (const auto & it : mdi) {
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<string>Compression level for FCStd files</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>3</number>
|
||||
<number>7</number>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>CompressionLevel</cstring>
|
||||
@@ -393,7 +393,7 @@ Common sizes are 128, 256 and 512</string>
|
||||
<number>512</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>128</number>
|
||||
<number>256</number>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ThumbnailSize</cstring>
|
||||
|
||||
Reference in New Issue
Block a user