Skip to content

Commit

Permalink
But this did...
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed May 8, 2023
1 parent d9cc909 commit 021abb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ls_UI/core/statusbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ do
object:SetValue_(new)
object._value = new

if isCloseEnough(new, target, object._max - object._min) then
if not object:IsVisible() or isCloseEnough(new, target, object._max - object._min) then
remove(object)
end
end
Expand Down Expand Up @@ -522,6 +522,8 @@ do

local function bar_SetValue(self, new)
if not self:IsVisible() or isCloseEnough(self._value, new, self._max - self._min) then
activeObjects[self] = nil

self:SetValue_(new)
self._value = new

Expand Down

0 comments on commit 021abb4

Please sign in to comment.