fix log
This commit is contained in:
@@ -47,11 +47,6 @@ function log:file()
|
||||
dir = "."
|
||||
end
|
||||
|
||||
-- ensure the directory
|
||||
if not os.isdir(dir) then
|
||||
os.mkdir(dir)
|
||||
end
|
||||
|
||||
-- open the log file
|
||||
self._FILE = io.open(outputfile, 'w+')
|
||||
end
|
||||
|
@@ -76,9 +76,7 @@ function demo:init()
|
||||
mconfdialog:load(configs)
|
||||
mconfdialog:action_set(action.ac_on_exit, function (v) self:quit() end)
|
||||
mconfdialog:action_set(action.ac_on_save, function (v)
|
||||
for _, config in ipairs(configs) do
|
||||
log:print("%s", config)
|
||||
end
|
||||
-- TODO save configs
|
||||
mconfdialog:quit()
|
||||
end)
|
||||
self:insert(mconfdialog)
|
||||
|
Reference in New Issue
Block a user