new car.quit callback for user scripts
This is particularly important for scripts that use my editor widget and need to invoke edit.quit. But it also seems like a good idea anyway.
This commit is contained in:
parent
4ddeb112aa
commit
ff5570d028
|
@ -1,6 +1,9 @@
|
|||
stop_button = function(x, y)
|
||||
styled_button('stop', x,y,
|
||||
function()
|
||||
if car.quit then
|
||||
call_protected(car.quit)
|
||||
end
|
||||
Show_menu = nil
|
||||
clear_handlers()
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue