From 526e5ac78daee578debe78d73d0a5ed7c7c61461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Sch=C3=B6n?= Date: Thu, 25 Apr 2024 11:14:41 +0200 Subject: [PATCH] eframe: update with_icon() documentation `None` is no longer correct. To disable the egui icon one has to pass `IconData::default()` now. --- crates/egui/src/viewport.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/viewport.rs b/crates/egui/src/viewport.rs index 090e93b3fe5..e1e3ebf0e82 100644 --- a/crates/egui/src/viewport.rs +++ b/crates/egui/src/viewport.rs @@ -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>) -> Self { self.icon = Some(icon.into());