mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Fix: fall back to default egui icon if non is set (#3610)
It broke in one of the recent multi-viewport prs
This commit is contained in:
@@ -13,7 +13,13 @@ pub struct AppTitleIconSetter {
|
||||
}
|
||||
|
||||
impl AppTitleIconSetter {
|
||||
pub fn new(title: String, icon_data: Option<Arc<IconData>>) -> Self {
|
||||
pub fn new(title: String, mut icon_data: Option<Arc<IconData>>) -> Self {
|
||||
if let Some(icon) = &icon_data {
|
||||
if **icon == IconData::default() {
|
||||
icon_data = None;
|
||||
}
|
||||
}
|
||||
|
||||
Self {
|
||||
title,
|
||||
icon_data,
|
||||
|
||||
Reference in New Issue
Block a user