:3
This commit is contained in:
parent
ff50f35461
commit
b3b0ab41b3
|
@ -117,8 +117,9 @@ rawset(__BUNDLER_FILES, "ui.lua", function ()
|
|||
ui.pinLabel:setText("Wrong")
|
||||
ui.enterButton:setBackground(colors.red)
|
||||
end
|
||||
ui.main:addThread()
|
||||
:start(ui.resetEverything)
|
||||
ui.main:addThread():start(function()
|
||||
ui.resetEverything(ui)
|
||||
end)
|
||||
end
|
||||
--- @param ui Ui
|
||||
local function resetEverything(ui)
|
||||
|
|
|
@ -44,8 +44,9 @@ local function unlockDoor(ui)
|
|||
ui.pinLabel:setText("Wrong")
|
||||
ui.enterButton:setBackground(colors.red)
|
||||
end
|
||||
ui.main:addThread()
|
||||
:start(ui.resetEverything)
|
||||
ui.main:addThread():start(function()
|
||||
ui.resetEverything(ui)
|
||||
end)
|
||||
end
|
||||
|
||||
--- @param ui Ui
|
||||
|
|
Loading…
Reference in New Issue
Block a user