[libcalamaresui] Fix sidebar label for setup mode

In the sidebar, the "Install" step should be named "Set Up" when in
setup mode, which will be more consistent with the other UI texts,
including button labels.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
Arnaud Ferraris 2019-05-08 12:29:01 +02:00
parent b840bce22d
commit bfd46276ad

View File

@ -78,7 +78,9 @@ ExecutionViewStep::ExecutionViewStep( QObject* parent )
QString QString
ExecutionViewStep::prettyName() const ExecutionViewStep::prettyName() const
{ {
return tr( "Install" ); return Calamares::Settings::instance()->isSetupMode()
? tr( "Set up" )
: tr( "Install" );
} }