fixed launcher process being visible in process manager
This commit is contained in:
@@ -59,7 +59,7 @@ local function mainloop()
|
|||||||
local apps = app.getRunningApps()
|
local apps = app.getRunningApps()
|
||||||
for i,pid in ipairs(apps) do
|
for i,pid in ipairs(apps) do
|
||||||
local appData,msg = app.getDetail(pid)
|
local appData,msg = app.getDetail(pid)
|
||||||
if appData then
|
if appData and pid ~= 1 then
|
||||||
processFrame:addLabel({
|
processFrame:addLabel({
|
||||||
x=1,
|
x=1,
|
||||||
y=i,
|
y=i,
|
||||||
@@ -70,7 +70,7 @@ local function mainloop()
|
|||||||
x=w-1,
|
x=w-1,
|
||||||
y=i,
|
y=i,
|
||||||
background=colors.green,
|
background=colors.green,
|
||||||
foreground=colors.white
|
foreground=colors.red
|
||||||
}):setText("X"):onClick(function (btn,x,y) app.closeApp(pid) mainloop() end)
|
}):setText("X"):onClick(function (btn,x,y) app.closeApp(pid) mainloop() end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user