Refactor leave event of ChoicePage, add ESP mount point support.

PVS now calls ChoicePage::onLeave, which in turn runs ChoicePage::
doAlongsideApply and/or sets up the ESP mount point based on the UI
state if it's running in EFI mode and the action is Alongside or
Replace.
If setting up under BIOS, Alongside and Replace always install
the bootloader in the MBR of the current device.
This commit is contained in:
Teo Mrnjavac 2016-02-19 16:33:19 +01:00
parent 7ec039f860
commit 7a89b53538
3 changed files with 98 additions and 26 deletions

View file

@ -363,9 +363,8 @@ PartitionViewStep::onActivate()
void
PartitionViewStep::onLeave()
{
if ( m_widget->currentWidget() == m_choicePage &&
m_choicePage->currentChoice() == ChoicePage::Alongside )
m_choicePage->doAlongsideApply();
if ( m_widget->currentWidget() == m_choicePage )
m_choicePage->onLeave();
}