[partition] Initialize m_isEfi just once

Initialize once, instead of initializing to a default
value and then assigning something a moment later.
This commit is contained in:
Adriaan de Groot 2024-12-20 12:38:47 +01:00
parent a192673704
commit b865a99151

View file

@ -60,10 +60,8 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent )
, m_ui( new Ui_PartitionPage )
, m_core( core )
, m_lastSelectedBootLoaderIndex( -1 )
, m_isEfi( false )
, m_isEfi( PartUtils::isEfiSystem() )
{
m_isEfi = PartUtils::isEfiSystem();
m_ui->setupUi( this );
m_ui->partitionLabelsView->setVisible(
Calamares::JobQueue::instance()->globalStorage()->value( "alwaysShowPartitionLabels" ).toBool() );