[packagechooser] Set GlobalStorage packagechooser_<id>

This commit is contained in:
Adriaan de Groot 2019-08-03 23:51:00 +02:00
parent c59ffc7765
commit 140c0db7a4
6 changed files with 45 additions and 1 deletions

View file

@ -137,6 +137,15 @@ PackageChooserViewStep::isAtEnd() const
void
PackageChooserViewStep::onLeave()
{
QString key = QStringLiteral( "packagechooser_%1" ).arg( m_id );
QString value;
if ( m_widget->hasSelection() )
{
value = m_widget->selectedPackageIds().join( ',' );
}
Calamares::JobQueue::instance()->globalStorage()->insert( key, value );
cDebug() << "PackageChooser" << key << "selected" << value;
}
Calamares::JobList