mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +01:00
minor bug fix
This commit is contained in:
parent
d9bd567271
commit
d8b8037b3e
@ -76,7 +76,7 @@ self.OS.GUI =
|
|||||||
_courrier.osfail "Cannot read service script: #{srv} ", e, s
|
_courrier.osfail "Cannot read service script: #{srv} ", e, s
|
||||||
|
|
||||||
appsByMime: (mime) ->
|
appsByMime: (mime) ->
|
||||||
metas = ( v for k, v of _OS.setting.system.packages when v.app )
|
metas = ( v for k, v of _OS.setting.system.packages when v and v.app )
|
||||||
mimes = ( m.mimes for m in metas when m)
|
mimes = ( m.mimes for m in metas when m)
|
||||||
apps = []
|
apps = []
|
||||||
# search app by mimes
|
# search app by mimes
|
||||||
@ -95,7 +95,7 @@ self.OS.GUI =
|
|||||||
|
|
||||||
appsWithServices: () ->
|
appsWithServices: () ->
|
||||||
o = {}
|
o = {}
|
||||||
o[k] = v for k, v of _OS.setting.system.packages when v.services and v.services.length > 0
|
o[k] = v for k, v of _OS.setting.system.packages when v and v.services and v.services.length > 0
|
||||||
o
|
o
|
||||||
|
|
||||||
openWith: (it) ->
|
openWith: (it) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user