From 5f9b7890c3d429abad73a3f31e9a49805704d7a9 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 22 Jul 2024 22:33:05 +0200 Subject: [PATCH] [partition] Add a summary message about swapfile --- src/modules/partition/PartitionViewStep.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/PartitionViewStep.cpp b/src/modules/partition/PartitionViewStep.cpp index 27020477b..a5de6d5ea 100644 --- a/src/modules/partition/PartitionViewStep.cpp +++ b/src/modules/partition/PartitionViewStep.cpp @@ -233,8 +233,12 @@ PartitionViewStep::prettyStatus() const } return s.join( QString() ); }(); - const QString jobsLabel = jobDescriptions( jobs() ).join( QStringLiteral( "
" ) ); - return diskInfoLabel + "
" + jobsLabel; + QStringList jobsLabels = jobDescriptions( jobs() ); + if ( m_config->swapChoice() == Config::SwapChoice::SwapFile ) + { + jobsLabels.append( tr( "Create a swap file." ) ); + } + return diskInfoLabel + "
" + jobsLabels.join( QStringLiteral( "
" ) ); } QWidget*