[partition] Fix build now swapChoices lives in config

This commit is contained in:
Adriaan de Groot 2020-07-30 10:26:58 +02:00
parent baabcc5bb4
commit d103c42091
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https://github.com/calamares> ===
*
* Copyright 2020, Adriaan de Groot <groot@kde.org>
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https://github.com/calamares> ===
*
* Copyright 2020, Adriaan de Groot <groot@kde.org>
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -33,9 +34,10 @@ public:
virtual ~Config() = default;
void setConfigurationMap( const QVariantMap& );
void updateGlobalStorage() const;
PartitionActions::Choices::SwapChoiceSet swapChoices() const { return m_swapChoices; }
private:
PartitionActions::Choices::SwapChoiceSet m_swapChoices;
qreal m_requiredStorageGiB = 0.0; // May duplicate setting in the welcome module

View File

@ -94,7 +94,7 @@ void
PartitionViewStep::continueLoading()
{
Q_ASSERT( !m_choicePage );
m_choicePage = new ChoicePage( m_swapChoices );
m_choicePage = new ChoicePage( m_config->swapChoices() );
m_choicePage->init( m_core );
m_widget->addWidget( m_choicePage );