diff options
author | Jelle Spijker <spijker.jelle@gmail.com> | 2021-12-01 19:35:56 +0300 |
---|---|---|
committer | Jelle Spijker <spijker.jelle@gmail.com> | 2021-12-03 15:25:46 +0300 |
commit | 02e2e0a1c6bf71b29a3198a9beb78266ea241c64 (patch) | |
tree | 82e2cc5b169256e0c054afa54612f97811849e26 /cura | |
parent | 09bc28d840165649e7e1b5e0ae41d5df25cc42b5 (diff) |
Filter already installed packages from the install listviews
Contributes to: CURA-8587
Diffstat (limited to 'cura')
-rw-r--r-- | cura/CuraPackageManager.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |