homescreens/halcyon: Fix focus child connection

This commit is contained in:
Devin Lin 2023-03-16 23:40:32 -07:00
parent 65129fe27d
commit bd8de03230

View file

@ -43,9 +43,9 @@ Item {
} }
Connections { Connections {
target: MobileShellState.HomeScreenControls target: WindowPlugin.WindowUtil
function onHomeScreenVisibleChanged(){ function onAllWindowsMinimizedChanged(){
if (WindowPlugin.WindowUtil.allWindowsMinimized) { if (WindowPlugin.WindowUtil.allWindowsMinimized) {
swipeView.focusChild(); swipeView.focusChild();
} }
@ -118,10 +118,10 @@ Item {
rightMargin: horizontalMargin rightMargin: horizontalMargin
leftEdgeCallback: () => { leftEdgeCallback: () => {
swipeView.setCurrentIndex(0); swipeView.setCurrentIndex(0);
swipeView.focusChild(); swipeView.focusChild();
currentIndex = -1; currentIndex = -1;
} }
} }
} }
} }