[plasmalnf] Reset layout along with theme

This commit is contained in:
Adriaan de Groot 2017-12-03 11:05:14 -05:00
parent 81128923e6
commit 7e5970324f
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ PlasmaLnfJob::exec()
if ( system->doChroot() )
{
r = system->targetEnvCall( QStringList( { m_lnfPath, "-a", m_id } ) );
r = system->targetEnvCall( QStringList( { m_lnfPath, "--resetlayout", "--apply", m_id } ) );
}
else
{

View File

@ -58,7 +58,7 @@ PlasmaLnfPage::activated(const QString& name)
cDebug() << "Changed to" << name;
QProcess lnftool;
lnftool.start( Calamares::lnftool(), {"--apply", name} );
lnftool.start( Calamares::lnftool(), {"--resetlayout", "--apply", name} );
if ( lnftool.waitForStarted(1000) && lnftool.waitForFinished( 1000 ) && (lnftool.exitCode() == 0) && (lnftool.exitStatus() == QProcess::NormalExit ) )
; // OK