From cbf7f4fb17c67bd400191eed05c35a31794c0d5a Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Mon, 8 Apr 2019 13:41:21 +0200 Subject: [PATCH] [calamares] Adjust window title for setup mode Signed-off-by: Arnaud Ferraris --- src/calamares/CalamaresWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calamares/CalamaresWindow.cpp b/src/calamares/CalamaresWindow.cpp index 7e619a7be..e11990600 100644 --- a/src/calamares/CalamaresWindow.cpp +++ b/src/calamares/CalamaresWindow.cpp @@ -2,6 +2,7 @@ * * Copyright 2014-2015, Teo Mrnjavac * Copyright 2017-2018, 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 @@ -53,8 +54,10 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) , m_viewManager( nullptr ) { CALAMARES_RETRANSLATE( - setWindowTitle( tr( "%1 Installer" ) - .arg( *Calamares::Branding::ProductName ) ); + setWindowTitle( Calamares::Settings::instance()->isSetupMode() + ? tr( "%1 Setup Program" ).arg( *Calamares::Branding::ProductName ) + : tr( "%1 Installer" ).arg( *Calamares::Branding::ProductName ) + ); ) const Calamares::Branding* const branding = Calamares::Branding::instance();