mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Do not restart the PICS cache on empty apps and packages
As suggested by @xPaw
This commit is contained in:
@@ -97,9 +97,7 @@ namespace ArchiSteamFarm.Steam.Integration {
|
||||
|
||||
LastChangeNumber = picsChanges.CurrentChangeNumber;
|
||||
|
||||
#pragma warning disable CA1508 // False positive, PackageChanges are not always empty
|
||||
if (picsChanges.RequiresFullAppUpdate || picsChanges.RequiresFullPackageUpdate || ((picsChanges.AppChanges.Count == 0) && (picsChanges.PackageChanges.Count == 0))) {
|
||||
#pragma warning restore CA1508 // False positive, PackageChanges are not always empty
|
||||
if (picsChanges.RequiresFullAppUpdate || picsChanges.RequiresFullPackageUpdate) {
|
||||
if (ASF.GlobalDatabase != null) {
|
||||
await ASF.GlobalDatabase.OnPICSChangesRestart(picsChanges.CurrentChangeNumber).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user