mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[partition] Refactor slot for change in action
- Let's not go overboard on lambdas, - Needed for others that also want to update the partitioning preview
This commit is contained in:
parent
b8595a1323
commit
0231619c7c
2 changed files with 15 additions and 8 deletions
|
@ -305,14 +305,7 @@ ChoicePage::setupChoices()
|
|||
m_rightLayout->setStretchFactor( m_previewAfterFrame, 0 );
|
||||
|
||||
connect( this, &ChoicePage::actionChosen,
|
||||
this, [=]
|
||||
{
|
||||
Device* currd = selectedDevice();
|
||||
if ( currd )
|
||||
{
|
||||
applyActionChoice( currentChoice() );
|
||||
}
|
||||
} );
|
||||
this, &ChoicePage::onActionChanged );
|
||||
|
||||
CALAMARES_RETRANSLATE(
|
||||
updateSwapChoicesTr( m_eraseSwapChoices );
|
||||
|
@ -412,6 +405,17 @@ ChoicePage::continueApplyDeviceChoice()
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
ChoicePage::onActionChanged()
|
||||
{
|
||||
Device* currd = selectedDevice();
|
||||
if ( currd )
|
||||
{
|
||||
applyActionChoice( currentChoice() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ChoicePage::applyActionChoice( ChoicePage::InstallChoice choice )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue