From 49eea234edf932d0af2ea29e8a2cb22f2fc9c687 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 9 Mar 2016 12:54:16 +0100 Subject: [PATCH] Hide bootloader chooser on EFI. --- src/modules/partition/gui/PartitionPage.cpp | 4 ++-- src/modules/partition/gui/PartitionPage.ui | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index a2a57fef5..28304192c 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -91,8 +91,8 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) connect( m_ui->deleteButton, &QAbstractButton::clicked, this, &PartitionPage::onDeleteClicked ); if ( QDir( "/sys/firmware/efi/efivars" ).exists() ) { - m_ui->bootLoaderComboBox->setDisabled( true ); - m_ui->label_3->setDisabled( true ); + m_ui->bootLoaderComboBox->hide(); + m_ui->label_3->hide(); } CALAMARES_RETRANSLATE( m_ui->retranslateUi( this ); ) diff --git a/src/modules/partition/gui/PartitionPage.ui b/src/modules/partition/gui/PartitionPage.ui index 904168552..575b5c507 100644 --- a/src/modules/partition/gui/PartitionPage.ui +++ b/src/modules/partition/gui/PartitionPage.ui @@ -164,7 +164,7 @@ 40 - 20 + 1