Make sure to show all the relevant partitioning actions.

This commit is contained in:
Teo Mrnjavac 2016-01-08 14:45:39 +01:00
parent e6b5dd976a
commit f71ce22f3b

View File

@ -751,7 +751,12 @@ ChoicePage::setupActions()
string( Calamares::Branding::ShortVersionedName ) ) ); string( Calamares::Branding::ShortVersionedName ) ) );
) )
} }
if ( !osproberEntriesForCurrentDevice.first().canBeResized )
m_replaceButton->show();
if ( osproberEntriesForCurrentDevice.first().canBeResized )
m_alongsideButton->show();
else
m_alongsideButton->hide(); m_alongsideButton->hide();
} }
else else
@ -790,7 +795,11 @@ ChoicePage::setupActions()
string( Calamares::Branding::ShortVersionedName ) ) ); string( Calamares::Branding::ShortVersionedName ) ) );
) )
if ( !atLeastOneCanBeResized ) m_replaceButton->show();
if ( atLeastOneCanBeResized )
m_alongsideButton->show();
else
m_alongsideButton->hide(); m_alongsideButton->hide();
} }