From 3b44bba8ac3768cb5cecef0f7f3c3abd43730c0e Mon Sep 17 00:00:00 2001 From: dyylanhammond <140345756+dyylanhammond@users.noreply.github.com> Date: Wed, 27 Sep 2023 17:08:43 -0400 Subject: [PATCH] Change default file saving preferences (#10781) * Change default compression level from 3 to 7 * increase default thumbnail size to 256 --- src/App/Document.cpp | 2 +- src/Gui/Document.cpp | 2 +- src/Gui/PreferencePages/DlgSettingsDocument.ui | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 22768f46fe..f1b3272fee 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -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(compression, Z_NO_COMPRESSION, Z_BEST_COMPRESSION); bool policy = App::GetApplication().GetParameterGroupByPath diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index ad4f66bd66..21f2a6a702 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -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(size, 64, 512); std::list mdi = getMDIViews(); for (const auto & it : mdi) { diff --git a/src/Gui/PreferencePages/DlgSettingsDocument.ui b/src/Gui/PreferencePages/DlgSettingsDocument.ui index 6e9a18fc34..37ca15fcee 100644 --- a/src/Gui/PreferencePages/DlgSettingsDocument.ui +++ b/src/Gui/PreferencePages/DlgSettingsDocument.ui @@ -98,7 +98,7 @@ Compression level for FCStd files - 3 + 7 CompressionLevel @@ -393,7 +393,7 @@ Common sizes are 128, 256 and 512 512 - 128 + 256 ThumbnailSize