From 7aa9c4366a1397fdaa3cc5e5e98bb75d3c2c3a8d Mon Sep 17 00:00:00 2001 From: xiepengfei Date: Thu, 5 Feb 2026 15:45:36 +0800 Subject: [PATCH] fix: Adapt the first item in the menu Adapt the first item in the menu Log: Adapt the first item in the menu --- src/dde-control-center/plugin/SecondPage.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dde-control-center/plugin/SecondPage.qml b/src/dde-control-center/plugin/SecondPage.qml index 23cdf61b3e..30bc402235 100644 --- a/src/dde-control-center/plugin/SecondPage.qml +++ b/src/dde-control-center/plugin/SecondPage.qml @@ -300,7 +300,8 @@ Item { rightView.replace(mainView, { "dccObj": activeObj }, DccApp.animationMode === DccApp.AnimationPush ? StackView.PushTransition : StackView.PopTransition) - if (activeObj.name !== "system") { + var rootFirstItem = DccApp.root.children.length > 0 ? DccApp.root.children[0] : null + if (activeObj !== rootFirstItem) { list.forceActiveFocus() } }