mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-13 05:04:22 +02:00
dynamic system menu
This commit is contained in:
@ -103,8 +103,7 @@ class NotePad extends this.OS.GUI.BaseApplication
|
||||
return @tabarea.set "selected", i if i isnt -1
|
||||
return @newtab file if file.path.toString() is "Untitled"
|
||||
me = @
|
||||
file.read (_d) ->
|
||||
d = if typeof _d is "string" then _d else JSON.stringify _d #TODO
|
||||
file.read (d) ->
|
||||
file.cache = d or ""
|
||||
me.newtab file
|
||||
|
||||
|
Reference in New Issue
Block a user