From 4dec9b755e3ae4528d50cc9902f658f4ef011f4d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 15 Aug 2025 17:39:38 +0800 Subject: perf(App): stop inf recursion when listView.count > 0 this happens when nothing is in listView because if(item) crit is not met(invalid due to selectedIndex not existing in listView as nothing is in listView) --- launcher/components/App.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/components/App.qml b/launcher/components/App.qml index 4bea8a0..5061070 100644 --- a/launcher/components/App.qml +++ b/launcher/components/App.qml @@ -107,7 +107,7 @@ IComponent { const item = listView.itemAtIndex(selectedIndex); if (item) state.selected = item; - else { + else if (listView.count > 0) { // wait until it's created listView.forceLayout(); // forces creation if in view Qt.callLater(syncSelectionState); -- cgit v1.2.3