private void ProfileLoggedIn(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Profiles.SettingsToLoad) && Variables.TryLoadingAgainAfterLogin)
{
SetProject(Variables.ReloadProjectSettings.langCode, Variables.ReloadProjectSettings.projectName,
Variables.ReloadProjectSettings.customProject, Variables.ReloadProjectSettings.protocol);
}
if (TheSession.IsBusy)
TheSession.Editor.Abort();
// English Wikipedia does not use {{Wikify}} // {{Persondata}}
wikifyToolStripMenuItem.Visible = !Variables.IsWikipediaEN;
metadataTemplateToolStripMenuItem.Visible = !Variables.IsWikipediaEN;
TheArticle = null;
txtEdit.Text = "";
TemplateRedirectsLoaded = false;
CheckStatus(true);
UpdateStatusUI();
StopProgressBar();
DisableButtons();
if (TheSession.User.HasMessages)
WeHaveNewMessages();
UpdateUserNotifications();
}