From 42cc615918ee1e4cc3ce435172e9f91dc1df1086 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Dec 2017 00:46:35 +0800 Subject: fix log and application bug --- xmake/core/ui/program.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmake/core/ui/program.lua') diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua index da4edabc7..75c08fc79 100644 --- a/xmake/core/ui/program.lua +++ b/xmake/core/ui/program.lua @@ -36,7 +36,7 @@ local curses = require("ui/curses") local program = program or group() -- init program -function program:init() +function program:init(name) -- init main window local main_window = self:main_window() @@ -76,7 +76,7 @@ function program:init() main_window:meta(true) -- init group - group.init(self, rect {0, 0, curses.columns(), curses.lines()}) + group.init(self, name, rect {0, 0, curses.columns(), curses.lines()}) end -- exit program @@ -118,8 +118,8 @@ function program:argv() return self._ARGV end --- run program -function program:run(argv) +-- run program loop +function program:loop(argv) -- save the current arguments self._ARGV = argv -- cgit v1.3.1