From f30fe4448350338dd87ebe9c8f9d76afb1c6ea39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 19 Aug 2026 22:36:06 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(app):=20the=20project=20sett?= =?UTF-8?q?ings=20answer=20before=20the=20first=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The oracle refused ActionId::Resolution with no timeline, so the Size, Rate and sound-rate rows — the whole pre-import settings surface — were dim exactly when a pending pick means the most. Joins the editor-wide always-on list; the no-timeline sweep test now pins it. --- crates/app/src/oracle.rs | 4 ++++ crates/app/src/tests/editing.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/crates/app/src/oracle.rs b/crates/app/src/oracle.rs index eeeeb9a..6c0998d 100644 --- a/crates/app/src/oracle.rs +++ b/crates/app/src/oracle.rs @@ -128,6 +128,10 @@ pub(crate) fn enable(action: ActionId, ctx: Ctx) -> Enable { | ActionId::VolumeDown | ActionId::ToggleProxies | ActionId::ToggleAutoProxies + // The project settings decide what the *next* file scaffolds as + // (`Player::pending_settings`), so refusing them before the first + // file was refusing them exactly when they mean the most. + | ActionId::Resolution ) { return match ctx.exporting { true => Enable::No("an export is running"), diff --git a/crates/app/src/tests/editing.rs b/crates/app/src/tests/editing.rs index 87a23cb..b93dc67 100644 --- a/crates/app/src/tests/editing.rs +++ b/crates/app/src/tests/editing.rs @@ -850,6 +850,9 @@ fn the_clip_menu_dims_what_the_playhead_is_not_on_and_stays_in_the_window() { // picture is then decoded from -- so a person answers them before the first // file, and a switch that waited for one was a switch that came too late to // stop the encode it was about. + // ...and so do the project settings: they decide what the next file + // scaffolds as (`pending_settings`), so a gate that waited for a timeline + // refused them exactly when they mean the most. for editor_wide in [ ActionId::ToggleSnap, ActionId::ToggleMute, @@ -857,6 +860,7 @@ fn the_clip_menu_dims_what_the_playhead_is_not_on_and_stays_in_the_window() { ActionId::VolumeDown, ActionId::ToggleProxies, ActionId::ToggleAutoProxies, + ActionId::Resolution, ] { assert!( whole(editor_wide, Ctx::default()).yes(),