FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
#928: the schema reports Restore open sequences as wired
JordyUSAa4053c07356c
diff --git a/crates/engine/src/settings.rs b/crates/engine/src/settings.rsindex e6f91d785..3b518fec2 100644--- a/crates/engine/src/settings.rs+++ b/crates/engine/src/settings.rs@@ -1107,7 +1107,7 @@ static CATEGORIES: &[Category] = &[b("timeline.playAfterRendering", "Play after rendering previews", true),b("timeline.clipMismatchWarning", "Show Clip Mismatch Warning dialog", false),b("timeline.matchFrameSetsIn", "Match frame sets in point", false),- b("timeline.restoreOpenSequences", "Restore open sequences when opening projects", false),+ b("timeline.restoreOpenSequences", "Restore open sequences when opening projects", true),b("timeline.addTracksAutomatically", "Add tracks automatically when editing source clips onto the Timeline", false),b("timeline.dropImportToTimeline", "Place files dropped onto the Timeline directly on the Timeline", true),],diff --git a/crates/engine/src/settings_tests.rs b/crates/engine/src/settings_tests.rsindex 6df9e2462..3f7759539 100644--- a/crates/engine/src/settings_tests.rs+++ b/crates/engine/src/settings_tests.rs@@ -256,6 +256,10 @@ fn schema_command_describes_every_category() {assert_eq!(auto["wired"], true);assert!(auto["kind"]["choices"].as_array().unwrap().iter().any(|c| c["value"] == "smoothScroll"));+ // `file.open` restores the saved tabs and views with this on (#928)+ let restore = tl["fields"].as_array().unwrap().iter().find(|f| f["key"] == "timeline.restoreOpenSequences").unwrap();+ assert_eq!((restore["wired"].clone(), restore["value"].clone()), (json!(true), json!(true)));+// This option is stored, but Insert/Overwrite does not yet implement focus transfer.let focus = tl["fields"].as_array().unwrap().iter().find(|f| f["key"] == "timeline.focusTimelineOnEdit").unwrap();assert_eq!(focus["kind"], json!({"type": "bool"}));