partition: fix handling no partitions

This commit is contained in:
Peter Eisenmann
2024-04-09 22:30:13 +02:00
parent b457c2fde4
commit 45bdfa5e28

View File

@@ -69,6 +69,7 @@ class PartitionPage(Gtk.Box, Page):
if len(self.disk.partitions) == 0:
reset_model(self.partition_list_model, [])
self.partition_stack.set_visible_child_name("no-partitions")
elif is_booted_with_uefi() and self.disk.efi_partition is None:
self.partition_stack.set_visible_child_name("no-boot-partition")
else: