mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Set the is_recently_installed flag
Contributes to: CURA-8587
This commit is contained in:
parent
14bc196154
commit
9e4258ef8b
3 changed files with 18 additions and 6 deletions
|
@ -65,10 +65,10 @@ class LocalPackageList(PackageList):
|
|||
package_type = package_info["package_type"]
|
||||
section_title = self.PACKAGE_CATEGORIES[bundled_or_installed][package_type]
|
||||
package = PackageModel(package_info, section_title = section_title, parent = self)
|
||||
if package_id in self._manager.getPackagesToRemove() or package_id in self._manager.getPackagesToInstall():
|
||||
package.is_recently_managed = True
|
||||
package.can_downgrade = self._manager.canDowngrade(package_id)
|
||||
self._connectManageButtonSignals(package)
|
||||
package.can_downgrade = self._manager.canDowngrade(package_id)
|
||||
if package_id in self._manager.getPackagesToRemove() or package_id in self._manager.getPackagesToInstall():
|
||||
package.is_recently_installed = True
|
||||
return package
|
||||
|
||||
def checkForUpdates(self, packages: List[Dict[str, Any]]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue