[flatpak] fix: informing the download size as the additional installation size (upgrade summary)

This commit is contained in:
Vinicius Moreira
2022-04-13 11:29:32 -03:00
parent 6937be8cb9
commit e2817e426d
2 changed files with 2 additions and 1 deletions

View File

@@ -701,7 +701,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
for p in apps_by_install[0]:
p.size = sizes.get(str(p.id))
to_update = [UpgradeRequirement(pkg=p, extra_size=p.size, required_size=p.size) for p in self.sort_update_order(pkgs)]
to_update = [UpgradeRequirement(pkg=p, extra_size=0, required_size=p.size) for p in self.sort_update_order(pkgs)]
return UpgradeRequirements(None, None, to_update, [])
def sort_update_order(self, pkgs: List[FlatpakApplication]) -> List[FlatpakApplication]: