diff options
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) |
