address qmlLabel changes too

This commit is contained in:
demmm 2020-01-24 15:14:51 +01:00
parent 9f55cf4cf4
commit 538d8d5497

View File

@ -19,9 +19,6 @@
#include "DummyQmlViewStep.h" #include "DummyQmlViewStep.h"
#include "utils/PluginFactory.h"
#include "viewpages/QmlViewStep.h"
#include <QVariant> #include <QVariant>
DummyQmlViewStep::DummyQmlViewStep( QObject* parent ) DummyQmlViewStep::DummyQmlViewStep( QObject* parent )
@ -44,13 +41,12 @@ DummyQmlViewStep::setConfigurationMap( const QVariantMap& configurationMap )
bool qmlLabel_ok = false; bool qmlLabel_ok = false;
auto qmlLabel = CalamaresUtils::getSubMap( configurationMap, "qmlLabel", qmlLabel_ok ); auto qmlLabel = CalamaresUtils::getSubMap( configurationMap, "qmlLabel", qmlLabel_ok );
if ( qmlLabel_ok )
{
if ( qmlLabel.contains( "notes" ) ) if ( qmlLabel.contains( "notes" ) )
{ {
m_notesName = new CalamaresUtils::Locale::TranslatedString( qmlLabel, "notes" ); m_notesName = new CalamaresUtils::Locale::TranslatedString( qmlLabel, "notes" );
} }
}
} }
CALAMARES_PLUGIN_FACTORY_DEFINITION( DummyQmlViewStepFactory, registerPlugin< DummyQmlViewStep >(); ) CALAMARES_PLUGIN_FACTORY_DEFINITION( DummyQmlViewStepFactory, registerPlugin< DummyQmlViewStep >(); )