mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Write reuseHome to GlobalStorage.
This commit is contained in:
parent
b20e18cc26
commit
6c6e4a1f88
1 changed files with 10 additions and 0 deletions
|
@ -129,6 +129,7 @@ ChoicePage::ChoicePage( QWidget* parent )
|
|||
m_previewAfterFrame->hide();
|
||||
m_encryptWidget->hide();
|
||||
m_reuseHomeCheckBox->hide();
|
||||
Calamares::JobQueue::instance()->globalStorage()->insert( "reuseHome", false );
|
||||
}
|
||||
|
||||
|
||||
|
@ -741,9 +742,16 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current )
|
|||
m_encryptWidget->passphrase() );
|
||||
Partition* homePartition = KPMHelpers::findPartitionByPath( { selectedDevice() },
|
||||
homePartitionPath );
|
||||
|
||||
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||
if ( homePartition )
|
||||
{
|
||||
PartitionInfo::setMountPoint( homePartition, "/home" );
|
||||
gs->insert( "reuseHome", true );
|
||||
}
|
||||
else
|
||||
{
|
||||
gs->insert( "reuseHome", false );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -861,6 +869,8 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
|||
PartitionBarsView::NoNestedPartitions;
|
||||
|
||||
m_reuseHomeCheckBox->hide();
|
||||
Calamares::JobQueue::instance()->globalStorage()->insert( "reuseHome", false );
|
||||
|
||||
switch ( choice )
|
||||
{
|
||||
case Alongside:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue