From cbc88598babb428af045e971724362e735f238fd Mon Sep 17 00:00:00 2001 From: urnati Date: Mon, 12 Aug 2024 19:45:44 -0400 Subject: [PATCH] - Volume Fix for Mute not toggling; icon now updated properly - Update History --- Titan/TitanHistory.lua | 4 ++++ TitanVolume/TitanVolume.lua | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 1.7.9.5