[partition] Restore BootLoader path in Choice Page
- after model resets, restore what was previously selected. - This avoids having an **empty** combobox, SEE #1141 but does not actually set it back to the value the user had previously picked (e.g. changing swap settings **still** breaks the selection).
This commit is contained in:
parent
0ebabfafd4
commit
f1f5b6c1bb
@ -1025,6 +1025,12 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
|||||||
eraseBootloaderLabel->setText( tr( "Boot loader location:" ) );
|
eraseBootloaderLabel->setText( tr( "Boot loader location:" ) );
|
||||||
|
|
||||||
m_bootloaderComboBox = createBootloaderComboBox( eraseWidget );
|
m_bootloaderComboBox = createBootloaderComboBox( eraseWidget );
|
||||||
|
connect( m_core->bootLoaderModel(), &QAbstractItemModel::modelReset,
|
||||||
|
[ this ]()
|
||||||
|
{
|
||||||
|
Calamares::restoreSelectedBootLoader( *m_bootloaderComboBox, m_core->bootLoaderInstallPath() );
|
||||||
|
}
|
||||||
|
);
|
||||||
connect( m_core, &PartitionCoreModule::deviceReverted,
|
connect( m_core, &PartitionCoreModule::deviceReverted,
|
||||||
this, [ this ]( Device* dev )
|
this, [ this ]( Device* dev )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user