Use the start_new func
This commit is contained in:
parent
8530b17099
commit
eda3703635
|
@ -624,28 +624,18 @@ function app_launcher:show()
|
||||||
if animation.x then
|
if animation.x then
|
||||||
animation.x.ended:unsubscribe()
|
animation.x.ended:unsubscribe()
|
||||||
animation.x:set(self._private.widget.goal_x)
|
animation.x:set(self._private.widget.goal_x)
|
||||||
gtimer {
|
gtimer.start_new(0.01, function()
|
||||||
timeout = 0.01,
|
screen.app_launcher.visible = true
|
||||||
call_now = false,
|
return false
|
||||||
autostart = true,
|
end)
|
||||||
single_shot = true,
|
|
||||||
callback = function()
|
|
||||||
screen.app_launcher.visible = true
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
if animation.y then
|
if animation.y then
|
||||||
animation.y.ended:unsubscribe()
|
animation.y.ended:unsubscribe()
|
||||||
animation.y:set(self._private.widget.goal_y)
|
animation.y:set(self._private.widget.goal_y)
|
||||||
gtimer {
|
gtimer.start_new(0.01, function()
|
||||||
timeout = 0.01,
|
screen.app_launcher.visible = true
|
||||||
call_now = false,
|
return false
|
||||||
autostart = true,
|
end)
|
||||||
single_shot = true,
|
|
||||||
callback = function()
|
|
||||||
screen.app_launcher.visible = true
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
screen.app_launcher.visible = true
|
screen.app_launcher.visible = true
|
||||||
|
|
Loading…
Reference in New Issue