From 58686571018da86108256ec4dc182ee70be00f40 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 14 May 2019 13:06:54 +0200 Subject: [PATCH] [calamares] Hide the window-close decoration when disable-cancel is set --- src/calamares/CalamaresWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calamares/CalamaresWindow.cpp b/src/calamares/CalamaresWindow.cpp index 157941a90..6f851513c 100644 --- a/src/calamares/CalamaresWindow.cpp +++ b/src/calamares/CalamaresWindow.cpp @@ -56,6 +56,10 @@ CalamaresWindow::CalamaresWindow( QWidget* parent ) , m_debugWindow( nullptr ) , m_viewManager( nullptr ) { + // If we can never cancel, don't show the window-close button + if ( Calamares::Settings::instance()->disableCancel() ) + setWindowFlags( Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint ); + CALAMARES_RETRANSLATE( setWindowTitle( Calamares::Settings::instance()->isSetupMode() ? tr( "%1 Setup Program" ).arg( *Calamares::Branding::ProductName )