From d93eb1daff25452602f82da69a125f9d990cce00 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 13 Jul 2010 02:29:10 -0400 Subject: [PATCH] Make sure the MainPanel exists before trying to reposition it. Fixes ticket #1038. --- Config.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Config.lua b/Config.lua index 13fe6ac..6529614 100644 --- a/Config.lua +++ b/Config.lua @@ -36,8 +36,7 @@ end local function ResetGUI() local options = addon.db.profile.frameopts - - addon.Frame:Hide() + local MainPanel = addon.Frame options.offsetx = 0 options.offsety = 0 @@ -46,7 +45,10 @@ local function ResetGUI() options.uiscale = 1 options.small_list_font = true - addon.Frame:Show() + if MainPanel then + MainPanel:Hide() + MainPanel:Show() + end end local options -- 1.7.9.5