From 33c1c694de3c214306f72c16f7581cd93886dc6b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 16 Jan 2026 01:55:20 +1100 Subject: internal: fix errors due to sync loaders --- modules/controlcenter/Session.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/controlcenter/Session.qml') diff --git a/modules/controlcenter/Session.qml b/modules/controlcenter/Session.qml index 0408a1a..5c4bb05 100644 --- a/modules/controlcenter/Session.qml +++ b/modules/controlcenter/Session.qml @@ -16,6 +16,6 @@ QtObject { readonly property EthernetState ethernet: EthernetState {} readonly property LauncherState launcher: LauncherState {} - onActiveChanged: activeIndex = panes.indexOf(active) - onActiveIndexChanged: active = panes[activeIndex] + onActiveChanged: activeIndex = Math.max(0, panes.indexOf(active)) + onActiveIndexChanged: if (panes[activeIndex]) active = panes[activeIndex] } -- cgit v1.2.3-freya