Skip to content

Commit 405107f

Browse files
committed
fix: reset page index on frame change
Added onCurrentFrameChanged handler to reset listviewPage index to 0 when switching to FullscreenFrame Previously the page reset only occurred on escape key press, but now it also triggers when navigating back to FullscreenFrame This ensures consistent behavior when returning to the fullscreen view from other frames fix: 在框架切换时重置页面索引 添加 onCurrentFrameChanged 处理程序,在切换到 FullscreenFrame 时将 listviewPage 索引重置为 0 之前页面重置仅在按下 escape 键时发生,现在在导航回 FullscreenFrame 时也 会触发 这确保了从其他框架返回全屏视图时行为的一致性 Pms: BUG-288417
1 parent fb7e239 commit 405107f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

qml/FullscreenFrame.qml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,11 @@ InputEventItem {
734734
if (folderGridViewPopup.visible) folderGridViewPopup.close()
735735
// reset(remove) keyboard focus
736736
baseLayer.focus = true
737-
// reset page to the first page
738-
listviewPage.setCurrentIndex(0)
737+
}
738+
function onCurrentFrameChanged() {
739+
if (LauncherController.currentFrame === "FullscreenFrame") {
740+
listviewPage.setCurrentIndex(0)
741+
}
739742
}
740743
}
741744
}

0 commit comments

Comments
 (0)