Commit 4939b941 authored by Mike Fleetwood's avatar Mike Fleetwood

Fix available Partition menu options not being updated on rescan (!38)

Select a partition and look at the available actions in the Partition
menu.  Then add or remove some commands which that particular file
system uses and rescan to detect those changes.  Open the Partition menu
again.  It doesn't reflect the changes of supported actions seen in the
File System Support dialog.  Select a different partition and then
select the original partition again.  Now the available actions in the
Partition menu reflect the changes of supported actions.

Have been testing by adding and removing /sbin/e2label to add and
remove EXT2/3/4 file system labelling support just because that feature
has existed for a very long time and EXT2/3/4 are displayed near the top
of the File System Support dialog.  Tested this minor issue existed as
far back as GParted 0.3.7.

Fix by simply also refreshing the valid operations to update the
Partition menu after updating the found file system specific commands.

Closes !38 - Fixes for minor issues with File System Support rescanning
parent 7ea91bca
......@@ -1696,6 +1696,9 @@ void Win_GParted::menu_gparted_features()
partitionmenu_items[MENU_FORMAT]->unset_submenu();
partitionmenu_items[MENU_FORMAT]->set_submenu(*create_format_menu());
partitionmenu_items[MENU_FORMAT]->get_submenu()->show_all_children();
// Update valid operations for the currently selected partition.
set_valid_operations();
}
}
......
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