From 901e3cc72fdb98a42d3b5967e03b217b3eb50668 Mon Sep 17 00:00:00 2001 From: Lars Norberg Date: Tue, 28 Sep 2021 15:25:38 +0200 Subject: [PATCH] 1.0.28-Release --- Bagnon_Garbage/main.lua | 6 ++++-- CHANGELOG.md | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Bagnon_Garbage/main.lua b/Bagnon_Garbage/main.lua index a60f850..a8b88b1 100644 --- a/Bagnon_Garbage/main.lua +++ b/Bagnon_Garbage/main.lua @@ -3,8 +3,10 @@ if (not Bagnon) then end if (function(addon) for i = 1,GetNumAddOns() do - if (string.lower((GetAddOnInfo(i))) == string.lower(addon)) then - if (GetAddOnEnableState(UnitName("player"), i) ~= 0) then + local name, title, notes, loadable, reason, security, newVersion = GetAddOnInfo(i) + if (name:lower() == addon:lower()) then + local enabled = not(GetAddOnEnableState(UnitName("player"), i) == 0) + if (enabled and loadable) then return true end end diff --git a/CHANGELOG.md b/CHANGELOG.md index 720f091..077e7a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.0.28-Release] 2021-09-28 +### Changed +- Update auto-disable logic. + ## [1.0.27-Release] 2021-09-01 - Bump TOC for BCC 2.5.2.