[calamares] Simplify disable-window-close-button code

main
Adriaan de Groot 6 years ago
parent d4f4a40fa5
commit 2208ff95fe

@ -58,7 +58,7 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
{
// If we can never cancel, don't show the window-close button
if ( Calamares::Settings::instance()->disableCancel() )
setWindowFlags( Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint );
setWindowFlag( Qt::WindowCloseButtonHint, false );
CALAMARES_RETRANSLATE(
setWindowTitle( Calamares::Settings::instance()->isSetupMode()

Loading…
Cancel
Save