fix
This commit is contained in:
@@ -598,7 +598,7 @@ function AccountLogin_OnKeyDown(key)
|
||||
if ConnectionHelpFrame:IsShown() then
|
||||
ConnectionHelpFrame:Hide()
|
||||
AccountLoginUI:Show()
|
||||
elseif SurveyNotificationFrame:IsShown() then
|
||||
elseif SurveyNotificationFrame and SurveyNotificationFrame:IsShown() then
|
||||
else
|
||||
AccountLogin_Exit()
|
||||
end
|
||||
@@ -607,7 +607,7 @@ function AccountLogin_OnKeyDown(key)
|
||||
return
|
||||
elseif TOSFrame:IsShown() or ConnectionHelpFrame:IsShown() then
|
||||
return
|
||||
elseif SurveyNotificationFrame:IsShown() then
|
||||
elseif SurveyNotificationFrame and SurveyNotificationFrame:IsShown() then
|
||||
AccountLogin_SurveyNotificationDone(1)
|
||||
end
|
||||
AccountLogin_PrimaryAction()
|
||||
@@ -957,6 +957,12 @@ function AccountLogin_Exit()
|
||||
end
|
||||
|
||||
function AccountLogin_ShowSurveyNotification()
|
||||
if not SurveyNotificationFrame or
|
||||
not SurveyNotificationAccept or
|
||||
not SurveyNotificationDecline then
|
||||
return
|
||||
end
|
||||
|
||||
GlueDialog:Hide()
|
||||
AccountLoginUI:Hide()
|
||||
SurveyNotificationAccept:Enable()
|
||||
@@ -965,11 +971,19 @@ function AccountLogin_ShowSurveyNotification()
|
||||
end
|
||||
|
||||
function AccountLogin_SurveyNotificationDone(accepted)
|
||||
SurveyNotificationFrame:Hide()
|
||||
SurveyNotificationAccept:Disable()
|
||||
SurveyNotificationDecline:Disable()
|
||||
SurveyNotificationDone(accepted)
|
||||
AccountLoginUI:Show()
|
||||
if SurveyNotificationFrame then
|
||||
SurveyNotificationFrame:Hide()
|
||||
end
|
||||
if SurveyNotificationAccept then
|
||||
SurveyNotificationAccept:Disable()
|
||||
end
|
||||
if SurveyNotificationDecline then
|
||||
SurveyNotificationDecline:Disable()
|
||||
end
|
||||
if type(SurveyNotificationDone) == "function" then
|
||||
SurveyNotificationDone(accepted)
|
||||
end
|
||||
ApplyLaunchMode()
|
||||
end
|
||||
|
||||
function AccountLogin_ShowUserAgreements()
|
||||
|
||||
Reference in New Issue
Block a user