mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Filter already installed packages from the install listviews
Contributes to: CURA-8587
This commit is contained in:
parent
09bc28d840
commit
02e2e0a1c6
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue