Skip to content

Commit

Permalink
Merge pull request #52 from mfontanini/default-footer
Browse files Browse the repository at this point in the history
Don't override default footer if none is specified
  • Loading branch information
mfontanini authored Nov 21, 2023
2 parents a2d7157 + 657ce9a commit 453a684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ impl<'a> PresentationBuilder<'a> {

fn generate_footer(&mut self) -> Vec<RenderOperation> {
let generator = FooterGenerator {
style: self.theme.footer.clone(),
style: self.theme.footer.clone().unwrap_or_default(),
current_slide: self.slides.len(),
context: self.footer_context.clone(),
};
Expand Down
2 changes: 1 addition & 1 deletion src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct PresentationTheme {

/// The style of the presentation footer.
#[serde(default)]
pub(crate) footer: FooterStyle,
pub(crate) footer: Option<FooterStyle>,
}

impl PresentationTheme {
Expand Down

0 comments on commit 453a684

Please sign in to comment.