Skip to content

Commit 603b0a5

Browse files
committed
fix: Command ssload now activates the profile correctly
1 parent d2d96a0 commit 603b0a5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Commands.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ end
2121

2222
function Commands:LoadProfileCMD(...)
2323
SwitchSwitch:DebugPrint("Changing talents to: " .. ...)
24-
SwitchSwitch:ActivateTalentProfile(string.join(" ", tostringall(...)))
24+
local name = SwitchSwitch:ToLower(CreateAtlasMarkup("gmchat-icon-blizz", 16, 16) .. string.join(" ", tostringall(...)));
25+
local profiles = self:GetProfiles();
26+
for k,v in pairs(profiles) do
27+
if(SwitchSwitch:ToLower(v.name) == name) then
28+
SwitchSwitch:ActivateTalentProfile(k);
29+
break;
30+
end
31+
end
2532
end
2633

2734

0 commit comments

Comments
 (0)