dynamic system menu

This commit is contained in:
Xuan Sang LE
2018-01-29 19:16:29 +01:00
parent ad22c6e356
commit 33ab53dddb
7 changed files with 79 additions and 40 deletions

View File

@ -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