From d216a1d9d2946bc7d0d91dbd5461557f2df01fe0 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Mon, 24 Oct 2022 19:49:22 -0500 Subject: [PATCH] Move bad skin check to after ReajustaGump ReajustaGump sets up the bar objects which are used in the ChangeSkin function and it's children functions. --- classes/class_instance.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/classes/class_instance.lua b/classes/class_instance.lua index 886aa150..263f6a96 100644 --- a/classes/class_instance.lua +++ b/classes/class_instance.lua @@ -1615,6 +1615,13 @@ function _detalhes:RestauraJanela(index, temp, load_only) self.mostrando = "normal" end + --internal stuff + self.oldwith = self.baseframe:GetWidth() + + self:RestoreMainWindowPosition() + self:ReajustaGump() + --self:SaveMainWindowPosition() + --fix for the weird white window default skin --this is a auto detect for configuration corruption, happens usually when the user install Details! over old config settings --check if the skin used in the window is the default skin, check if statusbar is in use and if the color of the window is full white @@ -1624,15 +1631,8 @@ function _detalhes:RestauraJanela(index, temp, load_only) self.skin = "no skin" self:ChangeSkin(_detalhes.default_skin_to_use) end - end - - --internal stuff - self.oldwith = self.baseframe:GetWidth() - - self:RestoreMainWindowPosition() - self:ReajustaGump() - --self:SaveMainWindowPosition() - + end + if (not load_only) then self.iniciada = true self:AtivarInstancia (temp)