diff options
| author | ruki <[email protected]> | 2018-01-25 23:11:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-25 13:07:53 +0800 |
| commit | d394e5ff46ff2856d2c8ae4772d2e84606449d32 (patch) | |
| tree | e51addfa545e08804d70274d4bfe1ae9de333d2b /xmake/core | |
| parent | 0c2c2d7b393d63caceea975eca697dc8d6665a1c (diff) | |
add ide plugin images in readme
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/ui/menuconf.lua | 20 |
1 files changed, 10 insertions, 10 deletions
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) |
