This commit is contained in:
Xuan Sang LE 2017-08-16 00:57:11 +02:00
parent 8fbd0b4a98
commit 1a054dbc9c
3 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class BaseApplication extends this.OS.GUI.BaseModel
($ @scheme).remove() ($ @scheme).remove()
baseMenu: -> baseMenu: ->
menu = mn =
[{ [{
text: _APP[@name].meta.name, text: _APP[@name].meta.name,
child: [ child: [
@ -55,8 +55,8 @@ class BaseApplication extends this.OS.GUI.BaseModel
{ text: "Exit", dataid: "#{@name}-exit" } { text: "Exit", dataid: "#{@name}-exit" }
] ]
}] }]
menu = menu.concat @menu() || [] mn = mn.concat @menu() || []
menu mn
main: -> main: ->
#main program #main program

View File

@ -52,7 +52,7 @@ class ActivityMonitor extends this.OS.GUI.BaseApplication
else else
me.gdata.processes[i] = undefined me.gdata.processes[i] = undefined
@grid.set "rows",activeList @grid.set "rows",activeList
exit: (e) -> cleanup: (e) ->
clearTimeout @timer if @timer clearTimeout @timer if @timer
ActivityMonitor.singleton = true ActivityMonitor.singleton = true

View File

@ -66,6 +66,6 @@ class wTerm extends this.OS.GUI.BaseApplication
me.socket = null me.socket = null
console.log "socket closed" console.log "socket closed"
#el.style.display = "block" #el.style.display = "block"
exit: (e)-> cleanup: (e)->
@socket.close() if @socket @socket.close() if @socket
this.OS.register "wTerm",wTerm this.OS.register "wTerm",wTerm