mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
261ecfacc1
@ -46,14 +46,14 @@ class SubscribedPackagesModel(ListModel):
|
|||||||
self._items.append(package)
|
self._items.append(package)
|
||||||
self.setItems(self._items)
|
self.setItems(self._items)
|
||||||
|
|
||||||
def hasCompatiblePackages(self):
|
def hasCompatiblePackages(self) -> bool:
|
||||||
has_compatible_items = False
|
has_compatible_items = False
|
||||||
for item in self._items:
|
for item in self._items:
|
||||||
if item['is_compatible'] == True:
|
if item['is_compatible'] == True:
|
||||||
has_compatible_items = True
|
has_compatible_items = True
|
||||||
return has_compatible_items
|
return has_compatible_items
|
||||||
|
|
||||||
def hasIncompatiblePackages(self):
|
def hasIncompatiblePackages(self) -> bool:
|
||||||
has_incompatible_items = False
|
has_incompatible_items = False
|
||||||
for item in self._items:
|
for item in self._items:
|
||||||
if item['is_compatible'] == False:
|
if item['is_compatible'] == False:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user