From a90fc4407ad6a04975c91e2a34a36f47d06c3270 Mon Sep 17 00:00:00 2001 From: MilleXIV Date: Fri, 2 Sep 2016 07:49:39 -0400 Subject: [PATCH] Bug fix for #35 --- modules/system.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system.lua b/modules/system.lua index 6720baa..425e433 100644 --- a/modules/system.lua +++ b/modules/system.lua @@ -27,6 +27,7 @@ end function SystemModule:OnDisable() self.systemFrame:Hide() + self.fpsFrame:SetScript('OnUpdate', nil) end function SystemModule:Refresh() @@ -103,6 +104,9 @@ function SystemModule:Refresh() end function SystemModule:UpdateTexts() + local db = xb.db.profile + if not db.modules.system.enabled then return; end + self.fpsText:SetText(floor(GetFramerate())..FPS_ABBR) local _, _, homePing, worldPing = GetNetStats() self.pingText:SetText(floor(homePing)..MILLISECONDS_ABBR) -- 1.7.9.5