mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-22 09:52:47 +01:00
fix spotlight
This commit is contained in:
parent
35c068ede8
commit
e0581b71ec
@ -28,8 +28,8 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
|
|||||||
me.search e
|
me.search e
|
||||||
@container.set "onlistdbclick", (e)->
|
@container.set "onlistdbclick", (e)->
|
||||||
return if e.data.dataid and e.data.dataid is "header"
|
return if e.data.dataid and e.data.dataid is "header"
|
||||||
me._gui.openWith e.data
|
|
||||||
me.handler(e) if me.handler
|
me.handler(e) if me.handler
|
||||||
|
me._gui.openWith e.data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog
|
|||||||
sel = @container.get "selected"
|
sel = @container.get "selected"
|
||||||
return unless sel
|
return unless sel
|
||||||
return if sel.dataid and sel.dataid is "header"
|
return if sel.dataid and sel.dataid is "header"
|
||||||
@._gui.openWith sel
|
|
||||||
@.handler(e) if @.handler
|
@.handler(e) if @.handler
|
||||||
|
@._gui.openWith sel
|
||||||
else
|
else
|
||||||
text = @searchbox.value
|
text = @searchbox.value
|
||||||
($ @scheme).css("height", "45px")
|
($ @scheme).css("height", "45px")
|
||||||
@ -86,6 +86,7 @@ class Spotlight extends this.OS.GUI.BaseService
|
|||||||
@openDialog "SpotlightDialog", (d) ->
|
@openDialog "SpotlightDialog", (d) ->
|
||||||
me.show = false
|
me.show = false
|
||||||
me.dialog.quit() if me.dialog
|
me.dialog.quit() if me.dialog
|
||||||
|
me.dialog = undefined
|
||||||
else
|
else
|
||||||
@dialog.quit() if @dialog
|
@dialog.quit() if @dialog
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user