[libcalamaresui] Improve failure message, unbreak loading
- example loading had an X inserted in filename (to test failure) - add a space between name and failure
This commit is contained in:
parent
fed298b179
commit
ce6d54ad95
@ -194,7 +194,7 @@ Calamares::QmlViewStep::setConfigurationMap( const QVariantMap& configurationMap
|
|||||||
if ( !m_qmlComponent )
|
if ( !m_qmlComponent )
|
||||||
{
|
{
|
||||||
// TODO: search for suitable file
|
// TODO: search for suitable file
|
||||||
QString qrcName = QStringLiteral( "qrc:/X%1.qml" ).arg( m_name );
|
QString qrcName = QStringLiteral( "qrc:/%1.qml" ).arg( m_name );
|
||||||
m_qmlFileName = qrcName;
|
m_qmlFileName = qrcName;
|
||||||
|
|
||||||
cDebug() << "QmlViewStep" << moduleInstanceKey() << "loading" << m_qmlFileName;
|
cDebug() << "QmlViewStep" << moduleInstanceKey() << "loading" << m_qmlFileName;
|
||||||
@ -216,5 +216,5 @@ void
|
|||||||
Calamares::QmlViewStep::showFailedQml()
|
Calamares::QmlViewStep::showFailedQml()
|
||||||
{
|
{
|
||||||
cWarning() << "QmlViewStep" << moduleInstanceKey() << "loading failed.";
|
cWarning() << "QmlViewStep" << moduleInstanceKey() << "loading failed.";
|
||||||
m_spinner->setText( prettyName() + tr( "Loading failed." ) );
|
m_spinner->setText( prettyName() + ' ' + tr( "Loading failed." ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user