Stop the AFK camera when AFK clears while it spins

62e0d4eb stopped the camera only while the start delay was shown, but the
delay hides itself once the camera starts. AFK cleared during the spin
left the overlay up, and the next key press sent /afk and set AFK again.
Stop when the camera spins instead, which also keeps stop() and its
SetView(4) from running when AFK clears before the camera started.
This commit is contained in:
Brues
2026-10-29 22:40:26 -05:00
parent 1ccf87c61a
commit ba752056ad
+2 -2
View File
@@ -166,9 +166,9 @@ pfUI:RegisterModule("afkcam", function ()
if event == "PLAYER_FLAGS_CHANGED" then
if UnitIsAFK('player') then
delay:Show()
elseif delay:IsVisible() then
else
delay:Hide()
this:stop()
if this._spinning then this:stop() end
end
else
if this._spinning then