add start/stop buttons

This commit is contained in:
lxsang
2019-05-07 14:34:26 +02:00
parent 5e4aa7b1d4
commit 8288379482
4 changed files with 18 additions and 0 deletions

View File

@ -163,6 +163,12 @@ class LuaPlayground extends this.OS.GUI.BaseApplication
me.editor.resize()
(@find "log-clear").set "onbtclick", (e) ->
me.log "clean"
(@find "code-run").set "onbtclick", (e) ->
me.run()
(@find "code-stop").set "onbtclick", (e) ->
me.socket.close() if me.socket
@socket = null
@bindKey "CTRL-R", () -> me.run()
menu: () ->