Qt: show home icons at once on start, and keep them when other apps change

Home app tiles waited for the full app list (every app listed and labelled
over JNI, slow on a phone) before they showed, while widgets showed at once.
The last app list is now kept and the home starts from it; nothing on home
is hidden until the fresh list has loaded. A package change used to reload
every icon on screen; now only that package's icons are drawn again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
Claude committed 2026-11-03 01:20:22 +00:00
1 parent 2028bf7a29
commit 8abe104dda
7 files changed
+69 -32

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ Item {
property var apps: [] // [{label, component, system}]
property var homeSet: ({}) // component -> true: on the home screen
property bool loading: true
property int generation: 0
property var iconGen: ({}) // package -> n, see Main.gen
property real insetTop: 0
property real insetBottom: 0
property alias query: search.text
@@ -117,7 +117,7 @@ Item {
height: 84
key: "a:" + (cell.app.component || "")
label: cell.app.label || ""
generation: root.generation
generation: root.iconGen[(cell.app.component || "").split("/")[0]] || 0
iconSize: 52
fontSize: 12
spacing: 6