mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
fix exit
This commit is contained in:
parent
8fbd0b4a98
commit
1a054dbc9c
@ -47,7 +47,7 @@ class BaseApplication extends this.OS.GUI.BaseModel
|
||||
($ @scheme).remove()
|
||||
|
||||
baseMenu: ->
|
||||
menu =
|
||||
mn =
|
||||
[{
|
||||
text: _APP[@name].meta.name,
|
||||
child: [
|
||||
@ -55,8 +55,8 @@ class BaseApplication extends this.OS.GUI.BaseModel
|
||||
{ text: "Exit", dataid: "#{@name}-exit" }
|
||||
]
|
||||
}]
|
||||
menu = menu.concat @menu() || []
|
||||
menu
|
||||
mn = mn.concat @menu() || []
|
||||
mn
|
||||
|
||||
main: ->
|
||||
#main program
|
||||
|
@ -52,7 +52,7 @@ class ActivityMonitor extends this.OS.GUI.BaseApplication
|
||||
else
|
||||
me.gdata.processes[i] = undefined
|
||||
@grid.set "rows",activeList
|
||||
exit: (e) ->
|
||||
cleanup: (e) ->
|
||||
clearTimeout @timer if @timer
|
||||
|
||||
ActivityMonitor.singleton = true
|
||||
|
@ -66,6 +66,6 @@ class wTerm extends this.OS.GUI.BaseApplication
|
||||
me.socket = null
|
||||
console.log "socket closed"
|
||||
#el.style.display = "block"
|
||||
exit: (e)->
|
||||
cleanup: (e)->
|
||||
@socket.close() if @socket
|
||||
this.OS.register "wTerm",wTerm
|
Loading…
Reference in New Issue
Block a user