[partition] Add a summary message about swapfile

This commit is contained in:
Adriaan de Groot 2024-07-22 22:33:05 +02:00
parent 51c39cdbee
commit 5f9b7890c3

View File

@ -233,8 +233,12 @@ PartitionViewStep::prettyStatus() const
} }
return s.join( QString() ); return s.join( QString() );
}(); }();
const QString jobsLabel = jobDescriptions( jobs() ).join( QStringLiteral( "<br/>" ) ); QStringList jobsLabels = jobDescriptions( jobs() );
return diskInfoLabel + "<br/>" + jobsLabel; if ( m_config->swapChoice() == Config::SwapChoice::SwapFile )
{
jobsLabels.append( tr( "Create a swap file." ) );
}
return diskInfoLabel + "<br/>" + jobsLabels.join( QStringLiteral( "<br/>" ) );
} }
QWidget* QWidget*