Skip to content
Browse files

Merge branch 'master' of github.com:Shadowed/ActionBarSaver

Conflicts:
	ActionBarSaver.lua
  • Loading branch information...
2 parents d2a7a5b + 9472c25 commit 880d7064092f79f599845428242fdfd8cd142049 Shadowed committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 ActionBarSaver.lua
View
7 ActionBarSaver.lua
@@ -235,6 +235,11 @@ function ABS:RestoreProfile(name, overrideClass)
-- Start fresh with nothing on the cursor
ClearCursor()
+ -- Save current sound setting
+ local soundToggle = GetCVar("Sound_EnableAllSound")
+ -- Turn sound off
+ SetCVar("Sound_EnableAllSound", 0)
+
for i=1, MAX_ACTION_BUTTONS do
if( i < POSSESSION_START or i > POSSESSION_END ) then
local type, id = GetActionInfo(i)
@@ -252,6 +257,8 @@ function ABS:RestoreProfile(name, overrideClass)
end
end
+ -- Restore old sound setting
+ SetCVar("Sound_EnableAllSound", soundToggle)
-- Done!
if( #(restoreErrors) == 0 ) then

0 comments on commit 880d706

Please sign in to comment.
Something went wrong with that request. Please try again.