This commit is contained in:
2026-08-30 02:55:15 +04:00
parent e53b3c1784
commit 66eb505af9
@@ -598,7 +598,7 @@ function AccountLogin_OnKeyDown(key)
if ConnectionHelpFrame:IsShown() then if ConnectionHelpFrame:IsShown() then
ConnectionHelpFrame:Hide() ConnectionHelpFrame:Hide()
AccountLoginUI:Show() AccountLoginUI:Show()
elseif SurveyNotificationFrame:IsShown() then elseif SurveyNotificationFrame and SurveyNotificationFrame:IsShown() then
else else
AccountLogin_Exit() AccountLogin_Exit()
end end
@@ -607,7 +607,7 @@ function AccountLogin_OnKeyDown(key)
return return
elseif TOSFrame:IsShown() or ConnectionHelpFrame:IsShown() then elseif TOSFrame:IsShown() or ConnectionHelpFrame:IsShown() then
return return
elseif SurveyNotificationFrame:IsShown() then elseif SurveyNotificationFrame and SurveyNotificationFrame:IsShown() then
AccountLogin_SurveyNotificationDone(1) AccountLogin_SurveyNotificationDone(1)
end end
AccountLogin_PrimaryAction() AccountLogin_PrimaryAction()
@@ -957,6 +957,12 @@ function AccountLogin_Exit()
end end
function AccountLogin_ShowSurveyNotification() function AccountLogin_ShowSurveyNotification()
if not SurveyNotificationFrame or
not SurveyNotificationAccept or
not SurveyNotificationDecline then
return
end
GlueDialog:Hide() GlueDialog:Hide()
AccountLoginUI:Hide() AccountLoginUI:Hide()
SurveyNotificationAccept:Enable() SurveyNotificationAccept:Enable()
@@ -965,11 +971,19 @@ function AccountLogin_ShowSurveyNotification()
end end
function AccountLogin_SurveyNotificationDone(accepted) function AccountLogin_SurveyNotificationDone(accepted)
SurveyNotificationFrame:Hide() if SurveyNotificationFrame then
SurveyNotificationAccept:Disable() SurveyNotificationFrame:Hide()
SurveyNotificationDecline:Disable() end
SurveyNotificationDone(accepted) if SurveyNotificationAccept then
AccountLoginUI:Show() SurveyNotificationAccept:Disable()
end
if SurveyNotificationDecline then
SurveyNotificationDecline:Disable()
end
if type(SurveyNotificationDone) == "function" then
SurveyNotificationDone(accepted)
end
ApplyLaunchMode()
end end
function AccountLogin_ShowUserAgreements() function AccountLogin_ShowUserAgreements()