diff options
| author | ruki <[email protected]> | 2018-01-31 22:28:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-31 08:52:30 +0800 |
| commit | b0c66bcd2f4f029706ddec16bb5c8bb4aae35774 (patch) | |
| tree | b2387db098555d386424d1b08c36c4be139b0afb /xmake/core/ui | |
| parent | 93d622e12e81ee28682258f302217fc8018e3ae3 (diff) | |
modify load configs
Diffstat (limited to 'xmake/core/ui')
| -rw-r--r-- | xmake/core/ui/mconfdialog.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/core/ui/mconfdialog.lua b/xmake/core/ui/mconfdialog.lua index 5d0145a91..8f2f76a87 100644 --- a/xmake/core/ui/mconfdialog.lua +++ b/xmake/core/ui/mconfdialog.lua @@ -222,14 +222,8 @@ end -- on event function mconfdialog:event_on(e) - -- load config first - if e.type == event.ev_idle then - if not self._LOADED then - self:action_on(action.ac_on_load) - self._LOADED = true - end -- select config - elseif e.type == event.ev_keyboard then + if e.type == event.ev_keyboard then if e.key_name == "Down" or e.key_name == "Up" or e.key_name == " " or e.key_name == "Esc" or e.key_name:lower() == "y" or e.key_name:lower() == "n" then return self:menuconf():event_on(e) elseif e.key_name == "?" then |
