From 02e2e0a1c6bf71b29a3198a9beb78266ea241c64 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 1 Dec 2021 17:35:56 +0100 Subject: Filter already installed packages from the install listviews Contributes to: CURA-8587 --- cura/CuraPackageManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cura/CuraPackageManager.py') diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index 4199375608..a8400bfae7 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -1,8 +1,7 @@ # Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. -from typing import Any, Dict, List, Tuple, TYPE_CHECKING, Optional -from collections import Generator +from typing import Any, Dict, List, Tuple, TYPE_CHECKING, Optional, Generator from cura.CuraApplication import CuraApplication #To find some resource types. from cura.Settings.GlobalStack import GlobalStack @@ -63,7 +62,7 @@ class CuraPackageManager(PackageManager): return machine_with_materials, machine_with_qualities - def iterateAllLocalPackages(self) -> Generator[Dict[str, Any]]: + def iterateAllLocalPackages(self) -> Generator[Dict[str, Any], None, None]: """ A generator which returns an unordered list of all the PackageModels""" # Get all the installed packages, add a section_title depending on package_type and user installed -- cgit v1.2.3