Allow setting a custom new root name in Labels view.

This commit is contained in:
Teo Mrnjavac 2015-12-16 11:13:03 +01:00
parent e277467ed4
commit 0c840abdc5
3 changed files with 19 additions and 6 deletions

View file

@ -536,6 +536,8 @@ ChoicePage::updateActionChoicePreview( Device* currentDevice, ChoicePage::Choice
{
PartitionBarsView* preview = new PartitionBarsView( m_previewAfterFrame );
PartitionLabelsView* previewLabels = new PartitionLabelsView( m_previewAfterFrame );
previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()->
string( Calamares::Branding::ShortProductName ) );
PartitionModel* model = new PartitionModel( preview );
model->init( currentDevice, m_core->osproberEntries() );