fix(qml): a warning
This commit is contained in:
parent
3b2ac9ac32
commit
248c1deda4
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,9 @@ Item {
|
||||||
signal requestPathEditor()
|
signal requestPathEditor()
|
||||||
|
|
||||||
onCurrentUrlChanged: {
|
onCurrentUrlChanged: {
|
||||||
|
if (!_viewLoader.item)
|
||||||
|
return
|
||||||
|
|
||||||
_viewLoader.item.reset()
|
_viewLoader.item.reset()
|
||||||
_viewLoader.item.forceActiveFocus()
|
_viewLoader.item.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
@ -207,6 +210,7 @@ Item {
|
||||||
id: _viewLoader
|
id: _viewLoader
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
asynchronous: true
|
||||||
sourceComponent: switch (settings.viewMethod) {
|
sourceComponent: switch (settings.viewMethod) {
|
||||||
case 0: return _listViewComponent
|
case 0: return _listViewComponent
|
||||||
case 1: return _gridViewComponent
|
case 1: return _gridViewComponent
|
||||||
|
|
Loading…
Reference in a new issue