Check if preset is installed. Args: pack_id: Preset ID Returns: True if pack is installed, False if not or registry corrupted
(self, pack_id: str)
| 527 | ) |
| 528 | |
| 529 | def is_installed(self, pack_id: str) -> bool: |
| 530 | """Check if preset is installed. |
| 531 | |
| 532 | Args: |
| 533 | pack_id: Preset ID |
| 534 | |
| 535 | Returns: |
| 536 | True if pack is installed, False if not or registry corrupted |
| 537 | """ |
| 538 | packs = self.data.get("presets") |
| 539 | if not isinstance(packs, dict): |
| 540 | return False |
| 541 | return pack_id in packs |
| 542 | |
| 543 | |
| 544 | class PresetManager: |