[app] Eliminated unnecessary QML object creation

This commit is contained in:
Slava Monich 2018-01-20 13:49:51 +02:00
parent feffa61273
commit 3325aad1b2

View file

@ -1,5 +1,5 @@
/*
Copyright (C) 2015-2016 Jolla Ltd.
Copyright (C) 2015-2018 Jolla Ltd.
Contact: Slava Monich <slava.monich@jolla.com>
You may use this file under the terms of BSD license as follows:
@ -99,9 +99,7 @@ SilicaFlickable {
onClicked: {
if (!_settingsComponent) {
_settingsComponent = Qt.createComponent("../settings/BooksSettings.qml")
if (_settingsComponent.status === Component.Ready) {
_settingsComponent.createObject(storageView)
} else {
if (_settingsComponent.status !== Component.Ready) {
console.log(_settingsComponent.errorString())
}
}