diff --git a/app/config/config.cpp b/app/config/config.cpp index 3a72975f9..d5803a32d 100644 --- a/app/config/config.cpp +++ b/app/config/config.cpp @@ -96,6 +96,7 @@ void Config::SetDefaults() SetEntryInternal(QStringLiteral("AutoMergeTracks"), NodeValue::kBoolean, true); SetEntryInternal(QStringLiteral("UseSliderLadders"), NodeValue::kBoolean, true); + SetEntryInternal(QStringLiteral("AutoCacheEnabled"), NodeValue::kBoolean, true); SetEntryInternal(QStringLiteral("AutoCacheDelay"), NodeValue::kInt, 1000); SetEntryInternal(QStringLiteral("CatColor0"), NodeValue::kInt, 0); diff --git a/app/render/previewautocacher.cpp b/app/render/previewautocacher.cpp index cbe569953..4532faeb1 100644 --- a/app/render/previewautocacher.cpp +++ b/app/render/previewautocacher.cpp @@ -11,13 +11,14 @@ namespace olive { PreviewAutoCacher::PreviewAutoCacher() : viewer_node_(nullptr), - paused_(false), has_changed_(false), use_custom_range_(false), single_frame_render_(nullptr), last_update_time_(0), ignore_next_mouse_button_(false) { + paused_ = !Config::Current()[QStringLiteral("AutoCacheEnabled")].toBool(), + SetPlayhead(0); delayed_requeue_timer_.setInterval(Config::Current()[QStringLiteral("AutoCacheDelay")].toInt());