mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-29 20:20:36 +02:00
fix
This commit is contained in:
@ -130,7 +130,6 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
@tabarea.set "onitemclose", (e) ->
|
||||
it = e.item.item
|
||||
return false unless it
|
||||
me.fileview.set "preventUpdate", true
|
||||
return me.closeTab it unless it.dirty
|
||||
me.openDialog "YesNoDialog", (d) ->
|
||||
return me.closeTab it if d
|
||||
@ -302,7 +301,6 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
open: (file) ->
|
||||
#find table
|
||||
i = @findTabByFile file
|
||||
@fileview.set "preventUpdate", true
|
||||
return @tabarea.set "selected", i if i isnt -1
|
||||
return @newtab file if file.path.toString() is "Untitled"
|
||||
me = @
|
||||
@ -391,6 +389,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
#return if i is @tabarea.get "selidx"
|
||||
file = (@tabarea.get "items")[i]
|
||||
return unless file
|
||||
@fileview.set "preventUpdate", true
|
||||
@scheme.set "apptitle", file.text.toString()
|
||||
#return if file is @currfile
|
||||
if @currfile isnt file
|
||||
|
Reference in New Issue
Block a user