(self, uefi: bool)
| 133 | return cls(bootloader=bootloader, uki=uki, removable=removable, plymouth=plymouth) |
| 134 | |
| 135 | def preview(self, uefi: bool) -> str: |
| 136 | text = f'{tr("Bootloader")}: {self.bootloader.value}' |
| 137 | text += '\n' |
| 138 | if uefi and self.bootloader.has_uki_support(): |
| 139 | if self.uki: |
| 140 | uki_string = tr('Enabled') |
| 141 | else: |
| 142 | uki_string = tr('Disabled') |
| 143 | text += f'UKI: {uki_string}' |
| 144 | text += '\n' |
| 145 | if uefi and self.bootloader.has_removable_support(): |
| 146 | if self.removable: |
| 147 | removable_string = tr('Enabled') |
| 148 | else: |
| 149 | removable_string = tr('Disabled') |
| 150 | text += f'{tr("Removable")}: {removable_string}' |
| 151 | text += '\n' |
| 152 | if self.plymouth is not None: |
| 153 | text += f'{tr("Plymouth")}: {self.plymouth.value}' |
| 154 | text += '\n' |
| 155 | return text |
nothing calls this directly
no test coverage detected