performance: Add app_id check to throttle icon fetch

This commit is contained in:
Peter Krull 2025-01-21 15:27:45 +01:00 committed by Ian Douglas Scott
parent e3b65d4772
commit 0c9cabd21a

View file

@ -461,7 +461,9 @@ impl Application for App {
if let Some(toplevel) =
self.toplevels.iter_mut().find(|x| x.handle == handle)
{
toplevel.icon = desktop_info::icon_for_app_id(info.app_id.clone());
if toplevel.info.app_id != info.app_id {
toplevel.icon = desktop_info::icon_for_app_id(info.app_id.clone());
}
toplevel.info = info;
}
}