From 9b77e5b17d88a11ddb9b9d17ada5fb31b1420481 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Mon, 8 Apr 2019 13:43:38 +0200 Subject: [PATCH] [summary] Adjust summary text to setup mode Signed-off-by: Arnaud Ferraris --- src/modules/summary/SummaryPage.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/summary/SummaryPage.cpp b/src/modules/summary/SummaryPage.cpp index de68b1211..bddfe9dcc 100644 --- a/src/modules/summary/SummaryPage.cpp +++ b/src/modules/summary/SummaryPage.cpp @@ -2,6 +2,7 @@ * * Copyright 2014-2015, Teo Mrnjavac * Copyright 2017, Adriaan de Groot + * Copyright 2019, Collabora Ltd * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,6 +26,7 @@ #include "utils/Retranslator.h" #include "utils/CalamaresUtilsGui.h" #include "utils/Logger.h" +#include "Settings.h" #include "ViewManager.h" #include @@ -46,8 +48,12 @@ SummaryPage::SummaryPage( const SummaryViewStep* thisViewStep, QWidget* parent ) QLabel* headerLabel = new QLabel( this ); CALAMARES_RETRANSLATE( - headerLabel->setText( tr( "This is an overview of what will happen once you start " - "the install procedure." ) ); + if ( Calamares::Settings::instance()->isSetupMode() ) + headerLabel->setText( tr( "This is an overview of what will happen once you start " + "the setup procedure." ) ); + else + headerLabel->setText( tr( "This is an overview of what will happen once you start " + "the install procedure." ) ); ) layout->addWidget( headerLabel ); layout->addWidget( m_scrollArea );