mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 06:41:22 -08:00
optimization: Avoid enumerating applications multiple times
This commit is contained in:
parent
3c61d560c3
commit
32b4e9d136
@ -576,19 +576,13 @@ namespace Ryujinx.UI.App.Common
|
||||
{
|
||||
AppData = application,
|
||||
});
|
||||
}
|
||||
|
||||
if (applications.Count > 1)
|
||||
{
|
||||
numApplicationsFound += applications.Count - 1;
|
||||
numApplicationsFound++;
|
||||
numApplicationsLoaded++;
|
||||
}
|
||||
}
|
||||
|
||||
numApplicationsLoaded += applications.Count;
|
||||
}
|
||||
else
|
||||
{
|
||||
numApplicationsFound--;
|
||||
}
|
||||
numApplicationsFound--;
|
||||
|
||||
OnApplicationCountUpdated(new ApplicationCountUpdatedEventArgs
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user