From 49ec202612f5e2029b63d23daa9e6a559e83cfcd Mon Sep 17 00:00:00 2001 From: Rivulet Date: Fri, 2 Jan 2026 12:14:04 -0800 Subject: [PATCH] fix hidden apps being visible --- Launcher/src/startup.lua | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Launcher/src/startup.lua b/Launcher/src/startup.lua index 223bc66..1b4a0cf 100644 --- a/Launcher/src/startup.lua +++ b/Launcher/src/startup.lua @@ -35,14 +35,19 @@ local function mainloop() foreground=colors.white }):fillWidth():setText("Apps:") local apps = app.getApps() + local offset = 0 for i,iapp in ipairs(apps) do - appFrame:addLabel({ - backgroundEnabled=false, - x=1, - y=i+1, - background=colors.white, - foreground=colors.white - }):fillWidth():setText(iapp.name):onClick(function () app.launch(iapp.appid,iapp.perms)end) + if not iapp.hidden then + appFrame:addLabel({ + backgroundEnabled=false, + x=1, + y=i+1-offset, + background=colors.white, + foreground=colors.white + }):fillWidth():setText(iapp.name):onClick(function () app.launch(iapp.appid,iapp.perms)end) + else + offset = offset + 1 + end end processFrame:clear() processFrame:addLabel({ @@ -54,7 +59,7 @@ local function mainloop() local apps = app.getRunningApps() for i,pid in ipairs(apps) do local appData,msg = app.getDetail(pid) - if appData and not appData.hidden then + if appData then processFrame:addLabel({ x=1, y=i,