From d08b836265c3f2c44041cb4d6da37183245b9a0e Mon Sep 17 00:00:00 2001 From: Silarn Date: Thu, 31 Jan 2019 17:16:17 -0600 Subject: Fix various issues when not having a stored API key --- src/mainwindow.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9368192f..3a341298 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3996,10 +3996,8 @@ void MainWindow::checkModsForUpdates() if (m_OrganizerCore.settings().getNexusApiKey(apiKey)) { m_OrganizerCore.doAfterLogin([this] () { this->checkModsForUpdates(); }); NexusInterface::instance(&m_PluginContainer)->getAccessManager()->apiCheck(apiKey); - } else { // otherwise there will be no endorsement info - MessageDialog::showMessage(tr("Not logged in, endorsement information will be wrong"), - this, true); - m_ModsToUpdate = ModInfo::checkAllForUpdate(&m_PluginContainer, this); + } else { + qWarning("You are not currently authenticated with Nexus. Please do so under Settings -> Nexus."); } } @@ -5457,12 +5455,10 @@ void MainWindow::modUpdateCheck() } else { QString apiKey; if (m_OrganizerCore.settings().getNexusApiKey(apiKey)) { - m_OrganizerCore.doAfterLogin([this]() { this->checkModsForUpdates(); }); + m_OrganizerCore.doAfterLogin([this]() { this->modUpdateCheck(); }); NexusInterface::instance(&m_PluginContainer)->getAccessManager()->apiCheck(apiKey); - } else { // otherwise there will be no endorsement info - MessageDialog::showMessage(tr("Not logged in, endorsement information will be wrong"), - this, true); - m_ModsToUpdate += ModInfo::autoUpdateCheck(&m_PluginContainer, this); + } else { + qWarning("You are not currently authenticated with Nexus. Please do so under Settings -> Nexus."); } } } -- cgit v1.3.1