From d2600bc5dc3e23fac07b766cf3ebc9a535584a0c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 10 Feb 2016 14:59:37 +0100 Subject: [PATCH] Set the nested partitions mode in PartitionPage. --- src/modules/partition/gui/PartitionPage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index 3f6237ed2..2f6ad9cdc 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -33,6 +33,8 @@ #include "utils/Retranslator.h" #include "Branding.h" +#include "JobQueue.h" +#include "GlobalStorage.h" // KPMcore #include @@ -56,6 +58,11 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) m_ui->setupUi( this ); m_ui->deviceComboBox->setModel( m_core->deviceModel() ); m_ui->bootLoaderComboBox->setModel( m_core->bootLoaderModel() ); + PartitionBarsView::NestedPartitionsMode mode = Calamares::JobQueue::instance()->globalStorage()-> + value( "drawNestedPartitions" ).toBool() ? + PartitionBarsView::DrawNestedPartitions : + PartitionBarsView::NoNestedPartitions; + m_ui->partitionBarsView->setNestedPartitionsMode( mode ); updateButtons(); updateBootLoaderInstallPath();