- Volume Fix for Mute not toggling; icon now updated properly
urnati [08-12-24 - 23:45]
- Volume Fix for Mute not toggling; icon now updated properly
- Update History
diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua
index 494b642..1fc09b1 100644
--- a/Titan/TitanHistory.lua
+++ b/Titan/TitanHistory.lua
@@ -34,6 +34,10 @@ Titan_Global.recent_changes = ""
.. "- All : Removed profession count option.\n"
.. "- All : Profession counts are in Detailed Tooltip as grey - NOT added to free / used totals.\n"
)
+.. TitanUtils_GetGreenText("Volume : \n")
+.. TitanUtils_GetHighlightText(""
+.. "- Fix double click Mute - it now toggles properly and icon changes.\n"
+)
.. TitanUtils_GetGreenText("Regen : \n")
.. TitanUtils_GetHighlightText(""
.. "- Cleanup documentation (comments); made some routines local.\n"
diff --git a/TitanVolume/TitanVolume.lua b/TitanVolume/TitanVolume.lua
index ad9ef2a..60e3a6f 100644
--- a/TitanVolume/TitanVolume.lua
+++ b/TitanVolume/TitanVolume.lua
@@ -86,7 +86,8 @@ local function IsMuted()
local mute = false
local setting = ALL_SOUND
local value = GetCVolume(setting)
- if value == "0" then
+ if value == "0"
+ or value == 0 then -- May have been a type change in 11.0.2
mute = true
elseif value == "1" then
-- not muted