feat(ui/views/App/Main/MainWindow): add more secure on first home render

This commit is contained in:
Ronan Abhamon 2017-02-20 11:59:24 +01:00
parent 0c1d6929cd
commit 613cfa2aa9

View file

@ -97,7 +97,9 @@ Controls1.ApplicationWindow {
// ---------------------------------------------------------------------------
Component.onCompleted: _setView('Home')
Component.onCompleted: Utils.setTimeout(window, 0, function () {
_setView('Home')
})
onActiveFocusItemChanged: activeFocusItem == null && smartSearchBar.hideMenu()