DriveSetup: disable 'Open with diskprobe' when no partition selected

This was part of the original DriveSetup patch but I missed it when
splitting it in smaller parts.
This commit is contained in:
Adrien Destugues 2019-04-11 18:03:14 +02:00
parent 5599a1a3bb
commit 53830ab75a

View File

@ -668,6 +668,8 @@ MainWindow::_UpdateMenus(BDiskDevice* disk,
fWipeMenuItem->SetEnabled(false);
fEjectMenuItem->SetEnabled(false);
fSurfaceTestMenuItem->SetEnabled(false);
fOpenDiskProbeMenuItem->SetEnabled(false);
fOpenDiskProbeContextMenuItem->SetEnabled(false);
} else {
// fWipeMenuItem->SetEnabled(true);
fWipeMenuItem->SetEnabled(false);