[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
@ -305,14 +305,7 @@ ChoicePage::setupChoices()
|
|||||||
m_rightLayout->setStretchFactor( m_previewAfterFrame, 0 );
|
m_rightLayout->setStretchFactor( m_previewAfterFrame, 0 );
|
||||||
|
|
||||||
connect( this, &ChoicePage::actionChosen,
|
connect( this, &ChoicePage::actionChosen,
|
||||||
this, [=]
|
this, &ChoicePage::onActionChanged );
|
||||||
{
|
|
||||||
Device* currd = selectedDevice();
|
|
||||||
if ( currd )
|
|
||||||
{
|
|
||||||
applyActionChoice( currentChoice() );
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
CALAMARES_RETRANSLATE(
|
CALAMARES_RETRANSLATE(
|
||||||
updateSwapChoicesTr( m_eraseSwapChoices );
|
updateSwapChoicesTr( m_eraseSwapChoices );
|
||||||
@ -412,6 +405,17 @@ ChoicePage::continueApplyDeviceChoice()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ChoicePage::onActionChanged()
|
||||||
|
{
|
||||||
|
Device* currd = selectedDevice();
|
||||||
|
if ( currd )
|
||||||
|
{
|
||||||
|
applyActionChoice( currentChoice() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ChoicePage::applyActionChoice( ChoicePage::InstallChoice choice )
|
ChoicePage::applyActionChoice( ChoicePage::InstallChoice choice )
|
||||||
{
|
{
|
||||||
|
@ -109,6 +109,9 @@ private slots:
|
|||||||
void onEncryptWidgetStateChanged();
|
void onEncryptWidgetStateChanged();
|
||||||
void onHomeCheckBoxStateChanged();
|
void onHomeCheckBoxStateChanged();
|
||||||
|
|
||||||
|
/** @brief Calls applyActionChoice() as needed. */
|
||||||
|
void onActionChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateNextEnabled();
|
void updateNextEnabled();
|
||||||
void setupChoices();
|
void setupChoices();
|
||||||
|
Loading…
Reference in New Issue
Block a user