eframe: update ViewportBuilder.with_icon() documentation (#4408)

`None` is no longer correct. To disable the egui icon one has to pass
`IconData::default()` now.
This commit is contained in:
Dennis Schön 2024-04-25 15:43:24 +02:00 committed by GitHub
parent 14194f5d3a
commit bfe1858e0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ impl ViewportBuilder {
/// The application icon, e.g. in the Windows task bar or the alt-tab menu.
///
/// The default icon is a white `e` on a black background (for "egui" or "eframe").
/// If you prefer the OS default, set this to `None`.
/// If you prefer the OS default, set this to `IconData::default()`.
#[inline]
pub fn with_icon(mut self, icon: impl Into<Arc<IconData>>) -> Self {
self.icon = Some(icon.into());