load global module if the local is not provided
This commit is contained in:
parent
6d194f02e3
commit
528429b5ab
@ -45,7 +45,11 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
if (configDialog.configPages.length > 0) {
|
||||||
main.sourceComponent = configDialog.configPages[0].component
|
main.sourceComponent = configDialog.configPages[0].component
|
||||||
|
} else {
|
||||||
|
main.sourceComponent = globalConfigPages[0].component
|
||||||
|
}
|
||||||
root.restoreConfig()
|
root.restoreConfig()
|
||||||
root.width = mainColumn.implicitWidth
|
root.width = mainColumn.implicitWidth
|
||||||
root.height = mainColumn.implicitHeight
|
root.height = mainColumn.implicitHeight
|
||||||
@ -86,7 +90,8 @@ Rectangle {
|
|||||||
top: parent.top
|
top: parent.top
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
}
|
}
|
||||||
width: 100
|
visible: configDialog.configPages.length > 0 && globalConfigPages.length > 0
|
||||||
|
width: visible ? 100 : 0
|
||||||
Flickable {
|
Flickable {
|
||||||
contentWidth: width
|
contentWidth: width
|
||||||
contentHeight: categoriesColumn.height
|
contentHeight: categoriesColumn.height
|
||||||
|
Loading…
Reference in New Issue
Block a user