Keep g_settings as a 'static' variable rather than a direct object.

This commit is contained in:
BenDol
2014-04-01 16:51:38 +13:00
parent b295053662
commit 79ee0e34ea
18 changed files with 174 additions and 99 deletions

View File

@@ -8,10 +8,10 @@ sendReportEvent = nil
firstReportEvent = nil
function initUUID()
UUID = g_settings:getString('report-uuid')
UUID = g_settings.getString('report-uuid')
if not UUID or #UUID ~= 36 then
UUID = g_crypt.genUUID()
g_settings:set('report-uuid', UUID)
g_settings.set('report-uuid', UUID)
end
end