From e0581b71ec7b8718b0a9a943b8ee6d9dfcced01f Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Sat, 3 Mar 2018 14:00:36 +0100 Subject: [PATCH] fix spotlight --- src/packages/CoreServices/Spotlight.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packages/CoreServices/Spotlight.coffee b/src/packages/CoreServices/Spotlight.coffee index 4ce986e..2a0ef85 100644 --- a/src/packages/CoreServices/Spotlight.coffee +++ b/src/packages/CoreServices/Spotlight.coffee @@ -28,8 +28,8 @@ class SpotlightDialog extends this.OS.GUI.BaseDialog me.search e @container.set "onlistdbclick", (e)-> return if e.data.dataid and e.data.dataid is "header" - me._gui.openWith e.data 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" return unless sel return if sel.dataid and sel.dataid is "header" - @._gui.openWith sel @.handler(e) if @.handler + @._gui.openWith sel else text = @searchbox.value ($ @scheme).css("height", "45px") @@ -86,6 +86,7 @@ class Spotlight extends this.OS.GUI.BaseService @openDialog "SpotlightDialog", (d) -> me.show = false me.dialog.quit() if me.dialog + me.dialog = undefined else @dialog.quit() if @dialog