Merge pull request #368 from Flamanis/Reset-Gump-on-Broke-Window-Detect

Move bad skin check to after ReajustaGump
This commit is contained in:
Tercio Jose
2022-10-24 21:57:02 -03:00
committed by GitHub
+7 -7
View File
@@ -1615,6 +1615,13 @@ function _detalhes:RestauraJanela(index, temp, load_only)
self.mostrando = "normal" self.mostrando = "normal"
end end
--internal stuff
self.oldwith = self.baseframe:GetWidth()
self:RestoreMainWindowPosition()
self:ReajustaGump()
--self:SaveMainWindowPosition()
--fix for the weird white window default skin --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 --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 --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
@@ -1626,13 +1633,6 @@ function _detalhes:RestauraJanela(index, temp, load_only)
end end
end end
--internal stuff
self.oldwith = self.baseframe:GetWidth()
self:RestoreMainWindowPosition()
self:ReajustaGump()
--self:SaveMainWindowPosition()
if (not load_only) then if (not load_only) then
self.iniciada = true self.iniciada = true
self:AtivarInstancia (temp) self:AtivarInstancia (temp)