Fix: On resource wasting, auto run is suspended
Alar of Daggerspine [01-19-16 - 18:25]
Fix: On resource wasting, auto run is suspended
diff --git a/MissionCompletion.lua b/MissionCompletion.lua
index f498237..fdc0932 100644
--- a/MissionCompletion.lua
+++ b/MissionCompletion.lua
@@ -151,16 +151,18 @@ function module:MissionComplete(this,button,skiprescheck)
end
end
if stop and not skiprescheck then
+ local wasquick=ns.quick
+ ns.quick=false
self:Popup(message.."\n" ..format(L["If you %s, you will loose them\nClick on %s to abort"],ACCEPT,CANCEL),0,
function()
+ ns.quick=wasquick
module:MissionComplete(this,button,true)
+ if ns.quick then addon:RunQuick() end
end,
function()
this:SetEnabled(true)
missionsFrame.CompleteDialog.BorderFrame.ViewButton:SetEnabled(true)
panel:Hide()
- ns.quick=false
-
end
)
return