don't return None unless there's no variants

macos-click-through
exoticus 5 years ago
parent ca7f984d30
commit 187ead2e1f

@ -66,6 +66,10 @@ impl ExtendedFontFamily {
}
}
if let Some(handle) = &self.fonts.first() {
return Some(&handle.font);
}
None
}

Loading…
Cancel
Save