(self, item: MenuItem)
| 382 | return None |
| 383 | |
| 384 | def _prev_disk_config(self, item: MenuItem) -> str | None: |
| 385 | disk_layout_conf: DiskLayoutConfiguration | None = item.value |
| 386 | |
| 387 | if disk_layout_conf: |
| 388 | output = tr('Configuration type: {}').format(disk_layout_conf.config_type.display_msg()) + '\n' |
| 389 | |
| 390 | if disk_layout_conf.config_type == DiskLayoutType.Pre_mount: |
| 391 | output += tr('Mountpoint') + ': ' + str(disk_layout_conf.mountpoint) |
| 392 | |
| 393 | if disk_layout_conf.lvm_config: |
| 394 | output += '{}: {}'.format(tr('LVM configuration type'), disk_layout_conf.lvm_config.config_type.display_msg()) + '\n' |
| 395 | |
| 396 | if disk_layout_conf.disk_encryption: |
| 397 | output += tr('Disk encryption') + ': ' + disk_layout_conf.disk_encryption.encryption_type.type_to_text() + '\n' |
| 398 | |
| 399 | if disk_layout_conf.btrfs_options: |
| 400 | btrfs_options = disk_layout_conf.btrfs_options |
| 401 | if btrfs_options.snapshot_config: |
| 402 | output += tr('Btrfs snapshot type: {}').format(btrfs_options.snapshot_config.snapshot_type.value) + '\n' |
| 403 | |
| 404 | return output |
| 405 | |
| 406 | return None |
| 407 | |
| 408 | def _prev_swap(self, item: MenuItem) -> str | None: |
| 409 | if item.value is not None: |
nothing calls this directly
no test coverage detected