Merge pull request #1923 from vlinkz/calamares

[users] add fullname to global storage
This commit is contained in:
Adriaan de Groot 2022-04-13 14:35:02 +02:00 committed by GitHub
commit a67adf7702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,6 +445,15 @@ Config::setFullName( const QString& name )
if ( name != m_fullName )
{
m_fullName = name;
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
if ( name.isEmpty() )
{
gs->remove( "fullname" );
}
else
{
gs->insert( "fullname", name );
}
emit fullNameChanged( name );
// Build login and hostname, if needed