Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Oct 19, 2020
1 parent 6e7414f commit 4cf0bf3
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")

_detalhes.build_counter = 7927
_detalhes.alpha_build_counter = 7927 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 7930
_detalhes.alpha_build_counter = 7930 --if this is higher than the regular counter, use it instead
_detalhes.game_version = "v9.0.1"
_detalhes.userversion = "v9.0.1." .. _detalhes.build_counter
_detalhes.realversion = 143 --core version, this is used to check API version for scripts and plugins (see alias below)
4 changes: 4 additions & 0 deletions classes/class_instance.lua
Original file line number Diff line number Diff line change
@@ -597,6 +597,8 @@ end

self.ativa = true
self.cached_bar_width = self.cached_bar_width or 0

self.modo = self.modo or 2

local lower = _detalhes:GetLowerInstanceNumber()

@@ -644,6 +646,7 @@ end
self:ToolbarSide()
self:AttributeMenu()

--[=[ --this block was showing back the window after using /details hide, It's probably a leftover from the new Auto Hide and the old one.
_detalhes.WindowAutoHideTick = _detalhes.WindowAutoHideTick or {}
if (_detalhes.WindowAutoHideTick [self.meu_id]) then
_detalhes.WindowAutoHideTick [self.meu_id]:Cancel()
@@ -659,6 +662,7 @@ end
_detalhes.WindowAutoHideTick [self.meu_id]:Cancel()
end
end)
--]=]
else
self:AdjustAlphaByContext(true)
end

0 comments on commit 4cf0bf3

Please sign in to comment.