Mercurial > wow > mailopener
comparison Modules/Config.lua @ 47:1243c2d2b85e
Now doing a garbage collection after making the options frame as we use many different tables that we don't ever touch again.
| author | Zerotorescue |
|---|---|
| date | Sun, 12 Sep 2010 20:28:39 +0200 |
| parents | 1805df31794d |
| children | fcc7112cc365 |
comparison
equal
deleted
inserted
replaced
| 46:1805df31794d | 47:1243c2d2b85e |
|---|---|
| 61 | 61 |
| 62 function mod:Load() | 62 function mod:Load() |
| 63 if not AceConfigDialog then | 63 if not AceConfigDialog then |
| 64 local options = self:GetOptions(); | 64 local options = self:GetOptions(); |
| 65 | 65 |
| 66 -- We have been pretty sloppy with tables in self:GetOptions(), but since this is only executed once and for readability we'll leave it this way | |
| 67 -- Instead, do a garbage collection | |
| 68 collectgarbage(); | |
| 69 | |
| 66 -- Build options dialog | 70 -- Build options dialog |
| 67 AceConfigDialog = LibStub("AceConfigDialog-3.0"); | 71 AceConfigDialog = LibStub("AceConfigDialog-3.0"); |
| 68 -- Register options table | 72 -- Register options table |
| 69 LibStub("AceConfig-3.0"):RegisterOptionsTable("Mail Opener", options); | 73 LibStub("AceConfig-3.0"):RegisterOptionsTable("Mail Opener", options); |
| 70 -- Set a nice default size | 74 -- Set a nice default size |
