Commit 54916986 authored by Kai Lüke's avatar Kai Lüke

No format option for extended partitions

Formatting extended partitions is not allowed,
and results in an error message. They have to be
deleted and recreaded as primary partitions.

Hide the format action for partitions which are
only containers for other partitions,
i.e. extended partitions.
parent b3ae4048
......@@ -2609,7 +2609,8 @@ update_device_page_for_block (GduWindow *window,
if (udisks_block_get_hint_partitionable (block))
show_flags->drive_menu |= SHOW_FLAGS_DRIVE_MENU_FORMAT_DISK;
show_flags->volume_menu |= SHOW_FLAGS_VOLUME_MENU_FORMAT_VOLUME;
if (partition == NULL || !udisks_partition_get_is_container (partition))
show_flags->volume_menu |= SHOW_FLAGS_VOLUME_MENU_FORMAT_VOLUME;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment