[partition] Polishing, formatting
This commit is contained in:
parent
fd37beae8b
commit
e6e46f1ebd
@ -148,10 +148,10 @@ public:
|
|||||||
/// @brief Is manual partitioning allowed (not explicitly disabled in the config file)?
|
/// @brief Is manual partitioning allowed (not explicitly disabled in the config file)?
|
||||||
bool allowManualPartitioning() const { return m_allowManualPartitioning; }
|
bool allowManualPartitioning() const { return m_allowManualPartitioning; }
|
||||||
|
|
||||||
/** @brief pre check encryption checkbox.
|
/** @brief Pre-check encryption checkbox.
|
||||||
*
|
*
|
||||||
* parameter is used if enableLuksAutomatedPartitioning is true.
|
* This is meaningful only if enableLuksAutomatedPartitioning is @c true.
|
||||||
* Default value is false
|
* Default value is @c false
|
||||||
*/
|
*/
|
||||||
bool preCheckEncryption() const { return m_preCheckEncryption; }
|
bool preCheckEncryption() const { return m_preCheckEncryption; }
|
||||||
|
|
||||||
|
@ -1584,9 +1584,10 @@ ChoicePage::calculateNextEnabled() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// You can have an invisible encryption checkbox, which is
|
||||||
|
// still checked -- then do the encryption.
|
||||||
if ( m_config->installChoice() != InstallChoice::Manual
|
if ( m_config->installChoice() != InstallChoice::Manual
|
||||||
&& (m_encryptWidget->isVisible() ||
|
&& ( m_encryptWidget->isVisible() || m_encryptWidget->isEncryptionCheckboxChecked() ) )
|
||||||
m_encryptWidget->isEncryptionCheckboxChecked()))
|
|
||||||
{
|
{
|
||||||
switch ( m_encryptWidget->state() )
|
switch ( m_encryptWidget->state() )
|
||||||
{
|
{
|
||||||
|
@ -70,12 +70,14 @@ EncryptWidget::EncryptWidget( QWidget* parent )
|
|||||||
CALAMARES_RETRANSLATE_SLOT( &EncryptWidget::retranslate );
|
CALAMARES_RETRANSLATE_SLOT( &EncryptWidget::retranslate );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EncryptWidget::isEncryptionCheckboxChecked()
|
bool
|
||||||
|
EncryptWidget::isEncryptionCheckboxChecked()
|
||||||
{
|
{
|
||||||
return m_ui->m_encryptCheckBox->isChecked();
|
return m_ui->m_encryptCheckBox->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EncryptWidget::setEncryptionCheckbox( bool preCheckEncrypt)
|
void
|
||||||
|
EncryptWidget::setEncryptionCheckbox( bool preCheckEncrypt )
|
||||||
{
|
{
|
||||||
m_ui->m_encryptCheckBox->setChecked( preCheckEncrypt );
|
m_ui->m_encryptCheckBox->setChecked( preCheckEncrypt );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user