[finished] Improve logging of restart mode

- Don't use weirdly-named mode, store named mode in page,
 - Log the actual mode name when setting up the restart button.
This commit is contained in:
Adriaan de Groot 2019-05-28 13:27:21 +02:00
parent 38c36e2439
commit 0c24a01eb9
4 changed files with 26 additions and 14 deletions

View file

@ -210,4 +210,11 @@ FinishedViewStep::setConfigurationMap( const QVariantMap& configurationMap )
m_notifyOnFinished = CalamaresUtils::getBool( configurationMap, "notifyOnFinished", false );
}
QString FinishedViewStep::modeName(FinishedViewStep::RestartMode m)
{
bool ok = false;
return modeNames().find( m, ok ); // May be QString()
}
CALAMARES_PLUGIN_FACTORY_DEFINITION( FinishedViewStepFactory, registerPlugin<FinishedViewStep>(); )