mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
Fix up merged PRs: Slide Master Preserve/placeholders know the notes and handout master views
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a4fa978903
commit
0c3f4eee63
@@ -3093,7 +3093,7 @@ fn master_checks(app: &SlideApp) -> (bool, bool, bool) {
|
||||
let preserve = match st.selection.target {
|
||||
Target::Master { master } => st.doc.masters.get(master).is_some_and(|m| m.preserve),
|
||||
Target::Layout { master, layout } => st.doc.masters.get(master).and_then(|m| m.layouts.get(layout)).is_some_and(|l| l.preserve),
|
||||
Target::Slides => false,
|
||||
Target::Slides | Target::Handout | Target::NotesMaster => false,
|
||||
};
|
||||
let title = st.shapes().iter().any(|sh| sh.ph_type().is_some_and(|k| k.is_title()));
|
||||
let footers = st.shapes().iter().any(|sh| sh.ph_type().is_some_and(|k| k.is_footer_kind()));
|
||||
|
||||
Reference in New Issue
Block a user