mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[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
1 changed files with 6 additions and 0 deletions
|
@ -1025,6 +1025,12 @@ ChoicePage::updateActionChoicePreview( ChoicePage::InstallChoice choice )
|
|||
eraseBootloaderLabel->setText( tr( "Boot loader location:" ) );
|
||||
|
||||
m_bootloaderComboBox = createBootloaderComboBox( eraseWidget );
|
||||
connect( m_core->bootLoaderModel(), &QAbstractItemModel::modelReset,
|
||||
[ this ]()
|
||||
{
|
||||
Calamares::restoreSelectedBootLoader( *m_bootloaderComboBox, m_core->bootLoaderInstallPath() );
|
||||
}
|
||||
);
|
||||
connect( m_core, &PartitionCoreModule::deviceReverted,
|
||||
this, [ this ]( Device* dev )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue