Moving start messages to lua

Moved start log messages to lua, to make easier to enable/disable those
messages.
This commit is contained in:
Ricardo Ianelli
2013-02-10 02:28:47 -02:00
parent 7f918a12a2
commit cbeab6f9b0
4 changed files with 11 additions and 7 deletions

View File

@@ -93,7 +93,10 @@ function init()
g_configs.save()
end
connect(g_app, { onRun = startup })
connect(g_app, {
onRun = startup,
onClose = exit,
})
end
function terminate()
@@ -107,3 +110,7 @@ function terminate()
g_settings.set('protocol-version', protocolVersion)
end
end
function exit()
g_logger.info("Exiting application..")
end