From d394e5ff46ff2856d2c8ae4772d2e84606449d32 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 25 Jan 2018 23:11:18 +0800 Subject: add ide plugin images in readme --- xmake/core/ui/menuconf.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'xmake/core/ui/menuconf.lua') diff --git a/xmake/core/ui/menuconf.lua b/xmake/core/ui/menuconf.lua index 6bf34f81e..24c8b2f1b 100644 --- a/xmake/core/ui/menuconf.lua +++ b/xmake/core/ui/menuconf.lua @@ -106,6 +106,16 @@ function menuconf:config_insert(config) self:invalidate() end +-- get the current config +function menuconf:config_current() + + -- get the current view item + local item = panel.current(self) + if item then + return item:extra("config") + end +end + -- load configs function menuconf:configs_load(configs) @@ -124,16 +134,6 @@ function menuconf:configs() return self._CONFIGS end --- get the current config -function menuconf:config_current() - - -- get the current view item - local item = panel.current(self) - if item then - return item:extra("config") - end -end - -- get text from the given config function menuconf:_config_text(config) -- cgit v1.3.1