fix hidden apps being visible

This commit is contained in:
2026-01-02 12:14:04 -08:00
parent 072535185f
commit 49ec202612

View File

@@ -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
if not iapp.hidden then
appFrame:addLabel({
backgroundEnabled=false,
x=1,
y=i+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,