performance: Add app_id check to throttle icon fetch
This commit is contained in:
parent
e3b65d4772
commit
0c9cabd21a
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue