Skip to main content

resolve_history

Function resolve_history 

Source
pub fn resolve_history(
    existing: Option<History>,
    current: &EditProject,
) -> History
Expand description

Reuse the existing edit history if it belongs to current (same source clip), otherwise start fresh. A different source path means a different clip was opened, so the old undo stack no longer applies. Pure.